私はこのような類似の質問をすべて読んだので、私は失われてしまいます。私は次のエラーを取得しています:これはどのようなレイアウトの制約ですか?
2015-09-14 22:59:40.455 guess-who[60143:9602686] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7c0f8e30 UIImageView:0x7b6efb60.top == _UILayoutGuide:0x7c0f67a0.top>",
"<_UILayoutSupportConstraint:0x7c0f8ae0 V:[_UILayoutGuide:0x7c0f67a0(0)]>",
"<_UILayoutSupportConstraint:0x7c0f0070 _UILayoutGuide:0x7c0f67a0.bottom == UIView:0x7c0f65e0.bottom>",
"<NSAutoresizingMaskLayoutConstraint:0x7b6f6130 h=--& v=--& UIImageView:0x7b6efb60.midY == + 204>",
"<NSAutoresizingMaskLayoutConstraint:0x7b6f6160 h=--& v=--& V:[UIImageView:0x7b6efb60(220)]>",
"<NSLayoutConstraint:0x7b6f6dc0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x7c0f65e0(518)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7b6f6e20 h=-&- v=-&- 'UIView-Encapsulated-Layout-Top' V:|-(0)-[UIView:0x7c0f65e0] (Names: '|':UIView:0x7c0effc0)>"
)
Will attempt to recover by breaking constraint
<_UILayoutSupportConstraint:0x7c0f0070 _UILayoutGuide:0x7c0f67a0.bottom == UIView:0x7c0f65e0.bottom>
私は私が正常に解決してきた他の制約の束のためにこれを得ているが、この1つは私を遊説しています。私はUILayoutSupportConstraint
が何であるか分からない。ドキュメントは非常に徹底的ではありません。私はビューデバッガを見て、UIView:0x7c0f65e0
は私のメインビューを参照しているようです(何らかの理由でブランクビューの子ですか?)。私は0x7c0f67a0で何かを見つけることができませんが、それはLayoutGuideを参照しているように見えます、彼らの底は平等でなければならないと言っています。私はこれを理解するために他にどのようなツールが利用できるのかよく分かりません。
EDIT:ビューデバッガの使用
、私はのソースを知っているどちらも、これら2つの制約のいずれかに絞らました:
私はできませんこれらのいずれかが設定されている場所を探します。みんなの最初の提案は、translatesAutoresizingMaskIntoConstraintsをfalseに設定することですが、それはレイアウト全体を破壊し、私はそれを修正する方法がわかりません。
プロジェクト全体を確認できますか?それは自動レイアウトに関するものです。 –
具体的に何を表示する必要がありますか? – thumbtackthief
あなたのストーリーボード。私はあなたにプルリクエストを送ることができるので、githubレポでそれを押してください。 –