0
가 나는 UIViewController에의 UIView는
Notepad *notepad = [[Notepad alloc] initForNewTopLevelTask:0 andDAO:self.dao];
[self.navigationController pushViewController:notepad animated:YES];
[notepad release];
initForNewTopLevelTask에 다음 코드가있는 회전하지 않습니다. UIViewController 행을 다음과 같이 변경하면
Notepad *notepad = [[Notepad alloc] init];
잘 돌아갑니다!
보기는 탭 컨트롤러의 일부가 아닌 내가 구현 한 : 당신은 항상 당신의 자신의 초기화 방법에서 부모 클래스의 init 메소드를 호출한다
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return YES;
}
너무 너무 너무 감사합니다! –