我希望能夠將我的啓動畫面在我的ipad上左右旋轉。 我已經在我的.plist文件中啓用了風景的左右方向。我已經添加了4個文件的LandscapeRight和LandscapeLeft:ipad啓動畫面不旋轉
[email protected]~ipad.png
[email protected]~ipad.png
Default-LandscapeRight~ipad.png
Default-LandscapeLeft~ipad.png
雖然這不應該的問題,在我的RootViewController的我已經有了:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
return (UIInterfaceOrientationIsLandscape(interfaceOrientation));
}
啓動畫面加載,但它不」不要旋轉。 我做錯了什麼?
你可以使用自定義啓動畫面。 –
@SarafarazBabi請詳細。我認爲定義風景左右閃屏是自定義啓動畫面 – Alex
我的意思是你可以創建一個啓動畫面的類並作爲rootviewcontroller傳遞它,並在1或2秒後推動你的家用視圖控制器...並管理閃屏類中的shouldautorotate ...得到它了? –