- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
했는데도 Rotate가 안될때.
pushViewController할때의 코드가 만약 alloc만으로 되어 있는 코드라면
subView = [subViewController alloc];
[navigationController pushViewController:subView animated:YES];
initialize한 후 pushViewController를 하면 됩니다.
subViewController = *subView = [[subViewController alloc] init];
[navigationController pushViewController:subView animated:YES];
'IPhone & IPad > 작은 팁' 카테고리의 다른 글
| XCode4에서 App 등록하기. (22) | 2011/03/14 |
|---|---|
| "시스템 루트" 키체인을 수정할 수 없습니다. (0) | 2010/08/09 |
| [1원 팁] 투명 뷰 만들기. (0) | 2010/07/22 |
| [1원 팁] SQLite에서 뽑은 값을 NSString을 전역변수로 쓰기. (0) | 2010/07/05 |
| UINavigationController를 이용해서 pushViewController했는데 Rotate가 안될때.. (0) | 2010/06/28 |
| 아이폰 앱개발시 코드는 문제 없는데 이유를 알 수 없는 에러가 날때.. (7) | 2010/04/30 |
댓글을 달아 주세요