Bob5421
Bob5421

Reputation: 9143

stretch old iOS app on iPhone6 Plus screen

I have a very old xcode/objective-c iOS project. I tried to compile it on the lastest Xcode version and it works fine. On big iPhones, the application is streched to fit in bigger screen.

I tried to create a new Xcode projet and drag all my source files in the new project. I removed storyboard. It works, but the application is not stretched. I see 2 black bands at the top and the bottom of the screen.

What i want is just to understand which parameter i have to changed in the project. This is not a storyboard or size classes issue because i have no storyboard or xib files. I tried to change iOS version déployment target.

Thanks

Upvotes: 0

Views: 104

Answers (2)

Gaurav Tiwari
Gaurav Tiwari

Reputation: 44

Add launch images of of accurate sizes as follows for iOS 8 and later.

Goto launchScreen in the XCAssets, you can see these options on the right pane see the image attached.

and add images with size :- Image type Size Retina HD 5.5″ 1242 × 2208 pixels Retina HD 4.7″ 750 × 1334 pixels

Upvotes: 1

D. Mika
D. Mika

Reputation: 2808

You need to add a launch image for the large screen size of the plus models or better a launch screen file. See: here

Upvotes: 2

Related Questions