Ich habe alle SO Fragen gelesen, die dem ähnlich sind und ich bin so verloren. Ich erhalte die folgende Fehlermeldung:Über welche Layoutbeschränkung spricht man?
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>
ich dies für eine Reihe von anderen Einschränkungen bekommen habe, die ich erfolgreich gelöst haben, aber dieses mich stumping. Ich weiß nicht, was ein UILayoutSupportConstraint
ist; Die Dokumentation ist nicht sehr gründlich. Ich habe durch den View-Debugger geschaut und UIView:0x7c0f65e0
scheint sich auf meine Hauptansicht zu beziehen (obwohl es das Kind einer leeren Ansicht ist, aus irgendeinem Grund?). Ich bin nicht in der Lage, etwas mit 0x7c0f67a0 zu finden, obwohl sich das auf den LayoutGuide zu beziehen scheint, da ihre Unterseiten gleich sein müssen. Ich bin mir nicht sicher, welche anderen Werkzeuge mir zur Verfügung stehen, um das herauszufinden.
EDIT:
der Ansicht Debugger, ich habe es verengt auf eine dieser beiden Bedingungen ab, von denen keiner weiß, dass ich die Quelle:
kann ich nicht Finde heraus, wo einer dieser Punkte gesetzt wird. Ich weiß, dass jeder erste Vorschlag darin besteht, translateAutoresizingMaskIntoConstraints auf false zu setzen, aber das zerstört mein gesamtes Layout und ich weiß nicht, wie ich es beheben soll.
Kann ich Ihr gesamtes Projekt sehen? Es geht um das automatische Layout. –
Was soll ich konkret zeigen? – thumbtackthief
Ihr Storyboard. Drücken Sie es auf Github Repo, damit ich Ihnen die Pull-Anfrage senden kann. –