0
如何自動旋轉第一隻查看肖像和第二隻查看橫向模式iOS6的如何自動旋轉第一隻查看肖像和第二隻查看橫向模式iOS6的
我在第一個視圖試過這樣
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
在Second/Detail視圖中
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscape;
}
-(BOOL) shouldAutorotate{
return YES;
}