반응형
NSLayoutConstraint가 ViewController를 충돌시킵니다.
내 앱에서 버튼을 클릭 할 때이 오류가 발생합니다.
2012-06-28 21:43:36.860 AppName[2403:707] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
*** First throw call stack:
(0x3568788f 0x37a2e259 0x35687789 0x356877ab 0x333a254d 0x333a26bb 0x333a2423 0x33333001 0x332a13c7 0x3317ec59 0x330f4c17 0x330ff267 0x330ff1d5 0x3319e59b 0x3319d367 0x331f86a7 0x8fb11 0x355e13fd 0x330d6e07 0x3319c5e7 0x355e13fd 0x330d6e07 0x330d6dc3 0x330d6da1 0x330d6b11 0x330d7449 0x330d592b 0x330d5319 0x330bb695 0x330baf3b 0x3727a22b 0x3565b523 0x3565b4c5 0x3565a313 0x355dd4a5 0x355dd36d 0x37279439 0x330e9cd5 0x8f6cb 0x8f628)
terminate called throwing an exception
이 코드 줄에서 오류가 발생합니다.
-(IBAction) goToAbout {
About *screen = [[ About alloc] initWithNibName:@"About" bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:screen animated:YES];
}
오류가 내 iPhone에만 표시되고 시뮬레이터에는 표시되지 않습니다 ...
새 NSLayoutConstraint
클래스를 지원하지 않는 디바이스에서이 작업을 실행하기 전에 NIB에서 "자동 레이아웃 사용"이라는 상자를 선택 취소해야합니다 .
참고 URL : https://stackoverflow.com/questions/11252057/nslayoutconstraint-crashes-viewcontroller
반응형
'programing tip' 카테고리의 다른 글
자바 스크립트 i ++ 대 ++ i (0) | 2020.08.11 |
---|---|
PHP에서 추상 클래스는 무엇입니까? (0) | 2020.08.11 |
html에서 클릭 한 요소 주변의 점선을 제거하는 방법 (0) | 2020.08.11 |
MySQL 루트 사용자의 전체 권한을 어떻게 복원 할 수 있습니까? (0) | 2020.08.11 |
화면의 모든 위치에 AlertDialog 표시 (0) | 2020.08.11 |