1
자동 회전 선을 얻으려고 내 app rootview 컨트롤러 인 tabbarcontroller에 알림/경고 유형보기를 추가하고 있습니다.회전 할 때 UITabBarController의 하위보기가
그러나 내 알림보기를 회전하면 Navbar 및 Tabbar 아래에 끝납니다.
http://dl.dropbox.com/u/6851931/2012-06-17%2011.08.47.jpg
두 이미지
http://dl.dropbox.com/u/6851931/2012-06-17%2011.08.42.jpg
는 회전 무엇을 회전하지 않을 경우처럼 보이는 때 무엇을 보여줍니다. 어쨌든보기가 항상 위에 있고 회전 지원을 받습니까?다음은보기 추가를위한 코드입니다. 당신이 modalPanel
를 만들 때
[self.customImageView whenTapped:^{
MA_MobileAppDelegate *appDelegate = (MA_MobileAppDelegate *)[[UIApplication sharedApplication] delegate];
UAModalPanel *modalPanel = [[MSPicturePreview alloc] initWithFrame:appDelegate.tabBarController.view.bounds withimage:self.customImageView.image];
[appDelegate.tabBarController.view addSubview:modalPanel];
[modalPanel showFromPoint:[self.contentView convertPoint:[self.customImageView center] toView:appDelegate.tabBarController.view]];
} ];
그것은 아무튼보기 컨트롤러에에
willRotateToInterfaceOrientation
기능을을 태그를 추가, 수동 전면에 그것을 가져다 줄 수 일하지 마라. :( – Hackmodford