Faktycznie zintegrowana aplikacja aparatu wykorzystująca Xib, w której umieściłem uiview w widoku, po czym umieszczam obraz, ponownie oglądam obraz, aby przyciąć. następnie uruchom projekt Mam ten błąd.Nie można jednocześnie zaspokoić ograniczeń
2013-07-23 12: 45: 49.936 Camera_App1 [30668: 907] Nie można jednocześnie spełnić ograniczeń. Prawdopodobnie przynajmniej jedno z ograniczeń na poniższej liście to takie, którego nie chcesz. Spróbuj tego: (1) spójrz na każde ograniczenie i spróbuj ustalić, czego się nie spodziewasz; (2) znajdź kod dodający niechciane ograniczenia lub ograniczenia i napraw je. (Uwaga: Jeśli widzisz NSAutoresizingMaskLayoutConstraints, że nie rozumieją, należy zapoznać się z dokumentacją dla translatesAutoresizingMaskIntoConstraints własności UIView)
(
"<NSAutoresizingMaskLayoutConstraint:0x1f5b3d10 h=--& v=--& V:[UIView:0x1f5a2f70(460)]>",
"<NSLayoutConstraint:0x1f5a3c80 V:[UIView:0x1f5a31b0]-(385)-| (Names: '|':UIView:0x1f5a3120)>",
"<NSLayoutConstraint:0x1f5a3f80 V:|-(0)-[UIView:0x1f5a3120] (Names: '|':UIView:0x1f5a2f70)>",
"<NSLayoutConstraint:0x1f5a3f40 V:[UIView:0x1f5a3120]-(63)-| (Names: '|':UIView:0x1f5a2f70)>",
"<NSLayoutConstraint:0x1f5a3bc0 V:|-(61)-[UIView:0x1f5a31b0] (Names: '|':UIView:0x1f5a3120)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1f5a3c80 V:[UIView:0x1f5a31b0]-(385)-| (Names: '|':UIView:0x1f5a3120)>
Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2013-07-23 12:45:58.697 Camera_App1[30668:907] media type=public.image
2013-07-23 12:45:58.701 Camera_App1[30668:907] global=public.image
2013-07-23 12:45:58.858 Camera_App1[30668:907] 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:0x1f5a3c80 V:[UIView:0x1f5a31b0]-(385)-| (Names: '|':UIView:0x1f5a3120)>",
"<NSLayoutConstraint:0x1f5a3f80 V:|-(0)-[UIView:0x1f5a3120] (Names: '|':UIView:0x1f5a2f70)>",
"<NSLayoutConstraint:0x1f5a3f40 V:[UIView:0x1f5a3120]-(63)-| (Names: '|':UIView:0x1f5a2f70)>",
"<NSLayoutConstraint:0x1f5a3bc0 V:|-(61)-[UIView:0x1f5a31b0] (Names: '|':UIView:0x1f5a3120)>",
"<NSAutoresizingMaskLayoutConstraint:0x1f53a430 h=--& v=--& V:[UIView:0x1f5a2f70(460)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1f5a3c80 V:[UIView:0x1f5a31b0]-(385)-| (Names: '|':UIView:0x1f5a3120)>
Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Chcę downvote komentarze. Na serio. –
@ MatthiasBauch Oznacz to jako nie konstruktywne. – JustSid
możliwy duplikat [Uzyskiwanie dziwnego błędu dotyczącego ograniczeń w Xcode] (http://stackoverflow.com/questions/11664115/getting-weird-error-talking- about-constraints-in-xcode) –