Xcode6 ios7.1 不能全螢幕顯示

來源:互聯網
上載者:User

標籤:

在Xcode6 中建立的app,在ios7.1的iphone5裝置和iphone模擬器中不能顯示全屏,用 [UIScreen mainScreen].bounds.size.height得到的值竟然是480!

從stackoverflow中找到的答案:

原文地址 http://stackoverflow.com/questions/25817562/black-bars-appear-in-app-when-targeting-ios7-1-or-7-0-in-xcode6

原有就是Xcode的一個bug(但是遲遲沒有唄修複,我覺得時蘋果想讓大家升級到ios8的原因吧),只有修改LaunchImages才行,步驟:

1. Targets --> yourApp --> General -->App icons and launch images --> launch Images Source ;

2. 點擊 Use Asset Catalog, 會彈出 Migrate launch images to an asset catalog 的提示,選擇預設的 Images 選項,點 Migrate.

做完以上步驟,噹噹當,Run,一切ok,反正我的是這樣解決的。

---------------Update-------------

解決了ios7.1的問題,隨之而來的時新問題:iPhone6和plus的螢幕一直是iphone5的screen height.

原因是沒有對應的Launch Image, 需要建立LaunchImage set,然後添加。

Xcode6 ios7.1 不能全螢幕顯示

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.