2011-08-17 4 views
0

세로 모드에서 모달 뷰를 만들었습니다. lanscape 모드 일 때는 회전하지 않습니다. splitViewController에서 모달 뷰를 세로에서 Lanscape로 회전하는 방법은 무엇입니까?자동 회전 모달보기

답변

1

비슷한 문제가 있습니다. 모달 뷰는 DetailViewController에서로드되고 iPad가 회전하면 모달 뷰가 완전히 사라집니다.

내가 수정에 왔어요 가장 가까운, 모달 뷰가로드 된 여부를 확인하고 다시로드과 같이하는, 회전 후 :

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation 
{ 
    if(self.modalViewController) 
     [self.modalViewController.view.window reloadInputViews]; 
}