Rahul
Rahul

Reputation: 211

Launch Image working on iPhone 4 & 5 but not on iPhone 6 and 6 plus in Objective-C

I've set launch images by going in Asset Catalog for iPhone 4,5, 6 and 6 plus. I know the dimensions for images and I've used them correctly. I've named the launch image for iPhone 6 and 6+, [email protected] and [email protected] respectively. But still the launch images that I've set for iPhone 6 and 6 plus are not working where as the images for iPhone 4 & 5 are showing up. Please help. Thanks in advance.

Upvotes: 0

Views: 429

Answers (2)

Rahul
Rahul

Reputation: 211

I got it working by emptying the text box in front of Launch Screen File. Though it will work if I add the image on LaunchScreen.xib, but for those of you who don't want that xib they need to left the Launch Screen File nil.

Upvotes: 0

Sergey  Pekar
Sergey Pekar

Reputation: 8745

Apple removed LaunchImage from iOS 8. Now if you want to show splash screen you need to use LaunchScreen.xib which now is creating with new project or another xib or storyboard that can be selected in "App Icons and Launch Images" section in "General" tab of your project settings.

enter image description here

From developer docs: "On iOS 8, the launch screen file will be used, and on iOS 7, the launch images will be used." Docs for launch screen here.

Upvotes: 3

Related Questions