xcode6+ios8 橫屏下啟動畫面不顯示問題修改

來源:互聯網
上載者:User

標籤:style   blog   http   io   ar   color   os   使用   sp   

本文轉載自漢果部落格 » xcode6+ios8 橫屏下啟動畫面不顯示問題修改

最近我做遊戲 發現xcode6+ios8 橫屏下啟動畫面不顯示   顯示黑屏 。

設定橫屏後 設定catalog 添加使用的圖片。在iphone6plus 下是橫屏 顯示啟動畫面  在 其他iphone裝置是不顯示啟動畫面的 。ipad也顯示啟動畫面。只有iphone有問題 。

最後有人指導,我記錄下 。

1、如果你的遊戲支援橫屏 切iphone ipad 都支援 則啟動圖片你要準備 橫豎 所有尺寸的圖片。
2、在info.plist啟動方式用兩個 或者三個,豎屏第一個,橫屏二個
3、在程式裡設定在RootViewController裡修改為 return UIInterfaceOrientationMaskLandscape;

  

- (NSUInteger) supportedInterfaceOrientations{#ifdef __IPHONE_6_0return UIInterfaceOrientationMaskLandscape;#endif}

4、AppController.mm中 [window makeKeyAndVisible]; 這句代碼 放在以下代碼的前面

if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0){// warning: addSubView doesn‘t work on iOS6[window addSubview: viewController.view];}else{// use this method on ios6[window setRootViewController:viewController];}

5、我的平台是xcode6 + cocos2dx3.1 測試了8.0的模擬器

 

xcode6+ios8 橫屏下啟動畫面不顯示問題修改

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.