IOS launch images – driving me crazy
Where can I find a complete list tells me what file name (?) and image file size I should use for:
- retina hd 5.5 portrait ios 8,9
- retinia hd 5.5 portrait ios 8,9
- retinia hd 5.5 landscape ios 8,9
- iphone portrait ios 2x 7-9
- iphone portrait ios retina 4 7-9
- ipad portrait ios 1x 7-9
- ipad portrait ios 2x 7-9
- ipad landscape ios 1x 7-9
- ipad landscape ios 2x 7-9
As I intend to use swift I can only suppose ios7+ that means i can ognore all he oher sizes for ios5+6, right?
This leaves the LaunchScreen.storyboard which seems to be a requirement for ios9 in some cases… What is the best way to simply have it load/show the correct background launch image?
- didReceiveRemoteNotification not called in Background Mode
- Sprite Kit Collision Detection
- One Signal - idsAvailable is deprecated
- openURL a local file or force UIDocumentInteractionController to use a specific app
- Passing Data to Tabbar Controller
- How to add Navigation bar to a view without Navigation controller
5 Solutions Collect From Internet About “IOS launch images – driving me crazy”
I use a LaunchImage set. Click Images.xcassets from the files list. In the next column to the right, you may need to use the “+” button to add AppIcon and LaunchImages image sets. These will have slots for every supported (expected) screen size. If you use these sets, you don’t have to worry about encrypting your image files with Apple’s indecipherable naming scheme, you just drag each image file to the corresponding slot in the set.
Of course, one still has to know the actual dimensions associated with 1x, 2x, retina4, Retina 4.7, Retina 5.5, etc. I’d certainly prefer Xcode to just show the required dimensions of each image, but it doesn’t. Barring that, I’d love a single table from Apple listing all the expected dimensions,
but that doesn’t seem to exist, either. It looks like Apple has, thankfully, consolidated all of this information in the https://developer.apple.com/ios/human-interface-guidelines/graphics/launch-screen/ under the “Graphics” section. Specifically, as of this writing for devices supported on IOS10:
Device Portrait size Landscape size iPhone 6s Plus, iPhone 6 Plus 1080px by 1920px 1920px by 1080px iPhone 6s, iPhone 6 750px by 1334px 1334px by 750px iPhone SE 640px by 1136px 1136px by 640px 12.9-inch iPad Pro 2048px by 2732px 2732px by 2048px 9.7-inch iPad Pro, iPad Air 2, iPad mini 4, iPad mini 2 1536px by 2048px 2048px by 1536px
For anyone finding this now i’ve created a list to simply explain what each of Apple’s somewhat confusing names actually mean.
iPhone Portrait iOS 8,9
- Retina HD 5.5 (iPhone 6 Plus) – 1242px x 2208px – Defaultemail@example.com
- Retina HD 4.7 (iPhone 6) – 750px x 1334px – Defaultfirstname.lastname@example.org
iPhone Landscape iOS 8,9
- Retina HD 5.5 (iPhone 6 Plus) – 2208px x 1242px – Default-Landscapeemail@example.com
iPhone Portrait iOS 7-9
- 2x (iPhone 4) – 640px x 960px – Default@2x.png
- Retina 4 (iPhone 5) – 640px x 1136px – Defaultfirstname.lastname@example.org
iPhone Portrait iOS 5,6
Although not pretty I use this quick way
1. Create a new LaunchImage and drop any file onto each box 2. Build it , it will fail or have some warnings 3. Click on the "Show Report navigator" and you'll see the sizes/names for each 4. On your image editor resize the image to the proper sizes/names and overwrite to the respective file as reported in 3. each file is on <proj dir>/Assets.xcassets/LaunchImage.launchImage
Do the same for icons and don’t look back
As with the other answers I use an Asset Catalog and simply drop files into the LaunchImage slots in the Asset Catalog in Xcode. Then I find my app in the Products Group of the Xcode Navigator (tall pane on the left) and Show in Finder. Any copy of your app package will do. Then I Show Package Contents on my app and all the LaunchImage*.png files are there. I just added a portrait launch image for the iPhone X. To see the names and sizes of the immages I navigated to the package in Terminal and ran the file command on the LaunchImage*.png files.
% file LaunchImage*.png LaunchImageemail@example.com: PNG image data, 1125 x 2436, 8-bit/color RGB, non-interlaced LaunchImagefirstname.lastname@example.org: PNG image data, 640 x 1136, 8-bit/color RGB, non-interlaced LaunchImage-700-Landscape@2x~ipad.png: PNG image data, 2048 x 1536, 8-bit/color RGB, non-interlaced LaunchImage-700-Landscape~ipad.png: PNG image data, 1024 x 768, 8-bit/color RGB, non-interlaced LaunchImage-700-Portrait@2x~ipad.png: PNG image data, 1536 x 2048, 8-bit/color RGB, non-interlaced LaunchImage-700-Portrait~ipad.png: PNG image data, 768 x 1024, 8-bit/color RGB, non-interlaced LaunchImageemail@example.com: PNG image data, 640 x 960, 8-bit/color RGB, non-interlaced LaunchImagefirstname.lastname@example.org: PNG image data, 750 x 1334, 8-bit/color RGB, non-interlaced LaunchImage-800-Portraitemail@example.com: PNG image data, 1242 x 2208, 8-bit/color RGB, non-interlaced
I was dealing with a similar issue to adapt to new iPhone X new screen size and came across this link
It helped me, maybe it will help someone else
- 'var' parameters are deprecated and will be removed in Swift 3
- Triple Nested UIScrollView paging issue
- iOS app: Missing 64-bit support
- Good resources for learning Objective-C
- Check if String contains any String from array
- Different size classes for iPad portrait and landscape modes with containerviews
- UIAlertView addSubview in iOS7
- Objective C – NSAttributedString inserting a bullet point?
- How do I convert an NSNumber to NSData?
- Display clear colored ViewController over another ViewController in iOS 7
- Firebase queryOrderedByChild() method not giving sorted data
- Determining if Swift dictionary contains key and obtaining any of its values
- Starting with Objective-C: To ARC or not to ARC?
- Know if iOS device has cellular data capabilities
- what's property copy means in Cocoa's Framework?(like UITabBar's items property)