首页 > 其他分享 >【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001

【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001

时间:2023-05-22 12:01:19浏览次数:39  
标签:png640 Launch iOS Image 2x pixelsiPhonePortrait Xcode8


一、Assets.xcassets -> + -> App icons & Launch Images -> New iOS Launch Image

【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001_Images


二、设置为Launch Image的图片,最好为 .png格式

【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001_Launch_02


三、单击工程名称 -> General -> Launch Images Source改为LaunchImage ->Launch Source File的内容置为空

【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001_Launch_03


四、将LaunchScreen.storyboard的设置中的Use as Launch Screen取消

【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001_Launch_04


五、此时运行就能看到Launch Image了,记得把之前装的app卸载掉。


六、效果图(ipad && iphone)

iPad 启动页面

【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001_iOS_05

iPhone 启动页面

【iOS开发】使用Xcode8 添加Launch Image(启动图片)之001_xcode_06


七、如果感觉Launch Image显示的时间太短,可以在AppDelegate.m文件里面添加一行 延迟 代码:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // 延迟进入应用,避免应用启动过快,导致启动图片一闪而过
    [NSThread sleepForTimeInterval:3.0];
}

八、设备支持的启动图片尺寸大全

按照如下 设置Launch Image 尺寸

Device

Orientation&&System

Size

Launch Image

pixel

iPhone

Portrait iOS 5,6

Retina 4

[email protected]

640 × 1136 pixels

iPhone

Portrait iOS 7,8

Retina 4

[email protected]

640 × 1136 pixels

iPhone

Portrait iOS 8

Retina HD 5.5

[email protected]

1242 × 2208 pixels

iPhone

Portrait iOS 8

Retina HD 4.7

[email protected]

750 × 1334 pixels

iPhone

Portrait iOS 5,6

1x

LaunchImage.png

320 × 480 pixels

iPhone

Portrait iOS 5,6

2x

[email protected]

640 × 960 pixels

iPhone

Portrait iOS 7,8

2x

[email protected]

640 × 960 pixels

iPhone

Landscape iOS 8

Retina HD 5.5

[email protected]

2208 × 1242 pixels

iPad

Portrait iOS 7,8

1x

LaunchImage.png

768 × 1024 pixels

iPad

Portrait iOS 7,8

2x

[email protected]

1536 × 2048 pixels

iPad

Landscape iOS 7,8

1x

LaunchImage.png

1024 × 768 pixels

iPad

Landscape iOS 7,8

2x

[email protected]

1536 × 2048 pixels

下一篇:launch Images启动图片设置(UILaunchImageFile)之002


标签:png640,Launch,iOS,Image,2x,pixelsiPhonePortrait,Xcode8
From: https://blog.51cto.com/u_13481937/6322890

相关文章

  • 删除docker images中为none的镜像
    查看现有镜像➜safelinedockerimagesREPOSITORYTAGIMAGEIDCREATEDSIZEchaitin/safeline-tengine1.5.125a6146e6aed13hoursago119MBchaitin/safeline-tenginelatest25a6146e6aed13hoursago119M......
  • 【图像数据增强】Image Data Augmentation for Deep Learning: A Survey
    原始题目ImageDataAugmentationforDeepLearning:ASurvey中文名称深度学习的图像数据增强:综述发表时间2022年4月19日平台arXiv来源南京大学文章链接https://arxiv.org/abs/2204.08610引言挑战在于,数据增强方法是独立于任务的。由于同时对图......
  • S3 MATLAB 图像处理综合实验平台 包括以下功能 Read image-
    S3MATLAB图像处理综合实验平台包括以下功能Readimage-open-gallery导入图片Resolutions图像模糊处理Imagehistogray灰度直方图显示,分水岭图像分割,gamma变换,直方图均衡化SpaticalFiltering图像添加噪声和滤波,以及图像锐化Frequencydomain一维和二维图像傅里叶变化Mo......
  • zImage的压缩、解压以及性能对比
    关键词:Image,zImage,piggy,gzip,lzo,xz,lzma等等。1.zImage的压缩zImage是Image经过压缩后,加上解压缩头后生成的文件:Image->piggy_data->piggy.o->vmlinux(compressed)->zImage。Image经过压缩生成piggy_data:cmd_arch/arm/boot/compressed/piggy_data:={catarch/arm/bo......
  • gdb如何比较core文件和image及buildid
    gdb从git上看到的提交记录,关键的修改是在elf_core_file_matches_executable_p函数中添加的对于build_id的比较。///@file:gdb-10.1\bfd\elfcore.hbfd_booleanelf_core_file_matches_executable_p(bfd*core_bfd,bfd*exec_bfd){char*corename;/*xvecsmustmatch......
  • Meta发布ImageBind新模型,对齐文本/图像/音频/3D深度/热量/运动等6种模态
    出品|CSDN(ID:CSDNnews)据外媒报道,上周四,Google、微软、OpenAI几家公司的CEO受邀去白宫,共论关于人工智能发展的一些重要问题。然而,让人有些想不通的是,深耕AI多年的Meta公司(前身为Facebook)却没有在受邀之列。没多久,更让MetaCEO扎克伯格扎心的是,一位官员对此解释称,本次......
  • 【五期邹昱夫】CCF-A(NeurIPS'21)Gradient inversion with generative image prior
    "JeonJ,LeeK,OhS,etal.Gradientinversionwithgenerativeimageprior[J].Advancesinneuralinformationprocessingsystems,2021,34:29898-29908."  本文提出了一种基于预训练模型的梯度反演方法。该方法通过使用潜在空间搜索优化维度较低的特征向量,减少......
  • element ui的el-upload上传组件中使用el-image的图片预览
    问题想在elementui的el-upload上传组件中使用el-image的图片预览,这样就可以放大和缩小还有多张图片切换因为el-upload提供的是使用对话框查看图片,不能放大缩小还不能左右切换说明在el-image组件内的预览功能是使用的el-image-viewer这个小组件实现的,所以我们直接导入调用这......
  • Eclipse won't launch because `reload maven project has encountered a proble m`
    关于eclipse因为maven无法启动的问题,参考以下两个网页http://www.91linux.com/html/2016/eclipse_1018/15540.htmlhttp://stackoverflow.com/questions/31080665/eclipse-wont-launch-because-reload-maven-project-has-encountered-a-proble-m不需要删除整个.metadata如果删除......
  • Failed to open connection to "session" message bus: Using X11 for dbus-daemon au
    Failedtoopenconnectionto"session"messagebus:UsingX11fordbus-daemonautolaunchwasdisabledatcompiletime,setyourDBUS_SESSION_BUS_ADDRESSinstead4Failedtoopenconnectionto"session"messagebus:UsingX11fordbus-da......