XCode가 불만족스러운 NSLayoutConstraints
을 잡아 내고 이에 대한 정보를 제공하지만 컨트롤/제약 조건의 메모리 주소를 취하는 방법을 알지 못해서 문제가있는 실제 컨트롤.UI 컨트롤에 만족스럽지 않은 NSLayoutConstraints의 메모리 주소를 매핑하는 중
내 응용 프로그램은 상당히 큽니다 (약 20 개의 화면), 일부는 큰 UIViewController이며 여러 개의 하위보기 컨트롤러가 있습니다. 일부는 사용자 정의 셀이있는 UITableView와 사용자 정의 셀이있는 UICollectionView입니다. 당신이 볼 수 있듯이
2013-05-02 11:18:53.225 Smile[7519:c07] 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)
(
"<NSAutoresizingMaskLayoutConstraint:0x16083b60 h=-&- v=-&- UIView:0xa5a1d00.width == UIWindow:0xa09eee0.width>",
"<NSLayoutConstraint:0xa5a2180 V:[UIView:0xa59f160]-(954)-| (Names: '|':UIView:0xa5a1d00)>",
"<NSLayoutConstraint:0xa5a2140 V:|-(0)-[UIView:0xa59f160] (Names: '|':UIView:0xa5a1d00)>",
"<NSAutoresizingMaskLayoutConstraint:0xa593340 h=--- v=--- H:[UIWindow:0xa09eee0(768)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0xa5a2180 V:[UIView:0xa59f160]-(954)-| (Names: '|':UIView:0xa5a1d00)>
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.
, 메모리가 있습니다 : 내 콘솔에서 정보를 (가로 회전에서 발생)이 오류의 원인 여기
을 시침 시간의 지옥을 갖는거야 주소가 나열되어 있습니다. 조사 창에있는 검색 창에 이들을 붙여 넣어도 그다지 알려주지 않습니다. 또한 스레드와 대기열 호출 스택을 샅샅이 뒤져서,이 중단 점 (예외 중단 점)에 대해서만 디스 어셈블 된 코드를 얻습니다.
visualizeConstraints는 OS X에서만 작동합니다. –
웁스! 어떤 이유로 UILayoutConstraint가 문제라고 생각했기 때문에 이것이 Mac에 있다고 생각했습니다. 나는 충분히 신중하게 질문을 읽지 않았다고 생각한다. –