zoukankan      html  css  js  c++  java
  • iPhone、iPhone4、iPad 程序启动画面的总结

    iPadiPhone程序增加启动画面非常简单,基本思路就是增加启动图片资源Default.png即可,只是要根据不同的分辨率和旋转方向需要有不同的图片尺寸。

    目前的iOS设备主要有四种不同的分辨率:
    1 iPad 768×1024

    2 New Pad 1536×2048

    3 iPhone4 640×960
    4 iPhone 320×480

    如果一个程序,既要支持iPad又要支持iPhone,那么它需要包含下面几个图片:

    1 Default.png iPhone默认启动图片,如果没有提供上面几个iPad专用启动图片,则在iPad上运行时也使用Default.png(不推荐) 320×480或者320×460
    2 Default@2x.png iPhone4启动图片640×960或者640×920

    3 Default-Portrait.png iPad专用竖向启动画面 768×1024或者768×1004; 对应的ipad3 Default-Portrait@2x.png 1536×2048
    4 Default-Landscape.png iPad专用横向启动画面 1024×768或者1024×748; 对应的ipad3 Default-Landscape@2x.png 1536×2048
    5 Default-PortraitUpsideDown.png iPad专用竖向启动画面(Home按钮在屏幕上面),可省略 768×1024或者768×1004; 对应的ipad3 Default-PortraitUpsideDown@2x.png 1536×2048
    6 Default-LandscapeLeft.png iPad专用横向启动画面(可省略), 1024×768或者1024×748;对应的ipad3 Default-LandscapeLeft@2x.png 1536×2048
    7 Default-LandscapeRight.png iPad专用横向启动画面(可省略), 1024×768或者1024×748;对应的ipad3 Default-LandscapeRight@2x.png 1536×2048

    为了在iPad上使用上述的启动画面,你还需要在xxxx_info.plist中加入key(根据下拉菜单中的可选项选择):
    1 UISupportedInterfaceOrientations
    2 Supported interface orientations

    同时,为其加入值(根据下拉菜单中的可选项选择):

    1 UIInterfaceOrientationPortrait Portrait (bottom home button)

    2 UIInterfacOrientationPortraitUpsideDown Portrait (top home button)

    3 UIInterfaceOrientationLandscapeLeft Landscape (left home button)

    4 UIInterfaceOrientationLandscapeRight Landscape (right home button)

    by gqzhu

  • 相关阅读:
    nginx负载均衡代理配置脚本
    想查看下编译安装的nginx默认都带有哪些模块
    docker安装mysql8.0.18
    Reached target Basic System
    layer iframe的一些操作记录:
    微信JSAPI支付
    用go和python实现在图片里藏图片
    go反射优化
    go图片灰度化
    golang 创建发送邮件服务
  • 原文地址:https://www.cnblogs.com/ydhliphonedev/p/2736954.html
Copyright © 2011-2022 走看看