年年有"余"

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2118|回复: 0

[项目经验] ios 4寸屏只显示3.5寸大小问题

[复制链接]
  • TA的每日心情
    奋斗
    2022-12-13 21:26
  • 签到天数: 371 天

    [LV.9]以坛为家II

    发表于 2015-8-25 10:47:11 | 显示全部楼层 |阅读模式
    1、现象描述:

    xcode6 新建项目,删除storyboard,删除lunch xib,代码创建windows和rootViewcontrol,能正常运行,但5s等4寸机型屏幕上部和下部显示为黑色背景,只有中间一块为可视区域。当然,状态栏也一同下移。

    2、原因分析:

    项目中没有4寸屏的启动图片,因此系统默认只适配3.5英寸屏

    3、解决办法:

            Taking advantage of the full 4" screen in your apps seems to be as simple as adding a new Default image named [email protected] with size 640 x 1136. Xcode 4.5 will actually offer to do this for you automatically by adding a black image of the proper size and name to your project.
           
            意思是说在项目中添加Default.png  [email protected]  [email protected] 这三张图片,其中前两张为3.5尺寸,后面[email protected]为4尺寸分辨率为640 x 1136

            如果是xcode6创建的项目,注意要在General---App Icons and Launch Images 的Launch Images Source 选择图片目录,如下图所示:

    2.pic.jpg
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    手机版|小黑屋|Archiver|iOS开发笔记 ( 湘ICP备14010846号 )

    GMT+8, 2024-5-3 04:56 , Processed in 0.045351 second(s), 21 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表