NavigationController에 UITableViewController를 푸는 데 문제가 있습니다. 다음 코드를 사용하십시오.UITableViewController 및 NavigationController
ProblemEditController *problemEditController = [[[ProblemEditController alloc] initWithNibName:@"ProblemEditController" bundle:nil] retain];
problemEditController.problem = [[Problem alloc] init];
[self.navigationController pushViewController:problemEditController animated:YES];
[problemEditController release];
네비게이션 컨트롤러가 작동하지만 테이블보기가 표시되지 않습니다. numberOfSectionsInTableView 내 UITableViewController에 대한 호출되고 있지만 numberOfRowsInSection 및 cellForRowAtIndexPath 호출중인 및보기가 비어있는 나타납니다.
실종 신고 된 것이 있습니까? 내가 nib 파일 (바보, 무엇을 기억할 수없는) 뭔가를 변경했습니다, 나는 numberOfRowsInSection를보고 있어요
EDIT 이제 호출되고.
iOS 라이브러리의 모든 고급 샘플 프로젝트는 프로그래밍 방식으로 많은 컨트롤러를 생성하므로 전체 애플리케이션 라이프 사이클에서 nib 파일의 위치를 파악하기가 어려울 때가 종종 있습니다. . – surfasb