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