zoukankan      html  css  js  c++  java
  • Xcode6 ios7.1 不能全屏显示

    在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,然后添加。

  • 相关阅读:
    yii主题
    aptana studio 使用技巧整理
    big database url
    yii表单输入元素
    下载,和scp上传问题
    对缓存的思考——提高命中率
    php用户名密码
    openx -书表添加字段
    搜索
    python——常用模块2
  • 原文地址:https://www.cnblogs.com/1oo1/p/4011671.html
Copyright © 2011-2022 走看看