简体   繁体   中英

Use custom file names for iOS launch images

是否可以像使用图标文件一样(例如通过Info.plist条目)为iOS应用程序启动/启动图像定义自己的命名约定,还是必须坚持使用...@2x.png...-568h@2x.png命名?

If you use an Asset Catalog (new in XCode5), you can use whatever file naming convention you like. The Asset Catalog takes care of mapping a logical name for an image resource to a set of files on disk.

You can change the root name (the “Default” bit) with the UILaunchImageFile key, which has been available since iOS 3.2, but in that case the suffixes— @2x , -568h@2x , etc.—are still fixed. To supply a set of arbitrary images, you can use the UILaunchImages array, but be advised that that API is iOS 7-only.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM