0

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

Bob5421
  • 7,757
  • 14
  • 81
  • 175

2 Answers2

2

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

Community
  • 1
  • 1
D. Mika
  • 2,577
  • 1
  • 13
  • 29
1

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