0
ProfileView보기 컨트롤러에서 버튼을 눌렀을 때 OptionsView보기 컨트롤러가 표시됩니다. 내 ProfileView.m 파일에서닙 네비게이션 스레드 1 : signal SIGABRT
나는이있는 viewDidLoad입니다 있습니다
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Options" style:UIBarButtonItemStylePlain target:self action:@selector(actionOptions)];
하고 내가 가진 :
- (void)actionOptions
{
OptionsView *screen = [[OptionsView alloc] initWithNibName:@"OptionsView" bundle:Nil];
[self.view addSubview:screen.view];
}
하지만 버튼을 누르 때마다 나는 스레드 1 얻을 : 신호 SIGABRT를 다음 콘솔 출력 :
2014-11-24 13:43:54.107 app[2161:5537921] didFailToRegisterForRemoteNotificationsWithError Error Domain=NSCocoaErrorDomain Code=3010 "remote notifications are not supported in the simulator" UserInfo=0x7ff7c2c365d0 {NSLocalizedDescription=remote notifications are not supported in the simulator}
2014-11-24 13:43:55.673 app[2161:5537921] *** Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-3318.16.14/UITableView.m:7344
2014-11-24 13:43:55.676 app[2161:5537921] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
버튼을 펜촉의 IBAction에 연결하면 안되는 이유는 무엇입니까? –
내가 할 때 같은 오류가 발생합니다. –
게시 한 코드와 관련이없는 것으로 보입니다. 게시 한 콘솔 출력을 읽었습니까? – stromdotcom