0
我希望我的应用成为风景。我尝试了一切,我的故事板的方向是风景,我改变了info.plist中支持的方向和初始方向。谁能帮我?方向风景在xCode 4.6上的iOS 5
在iOS 6模拟器中,它是风景。
我希望我的应用成为风景。我尝试了一切,我的故事板的方向是风景,我改变了info.plist中支持的方向和初始方向。谁能帮我?方向风景在xCode 4.6上的iOS 5
在iOS 6模拟器中,它是风景。
在iOS 5中,您需要在视图控制器的每个人中实现以下方法。
// Called only in IO 5 and earlier.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight ||
interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
,并设置你的Info.plist
UIInterfaceOrientation“初始界面方向 ”到UIInterfaceOrientationLandscapeRight铺陈在横向模式下您的看法。
谢谢男人。有效 – 2013-05-01 20:23:59