Nithya Nithya - 11 months ago 83
iOS Question

View controller is not presenting in full screen

enter link description herei don't why my view controller is not presenting in full screen.. i don't know what i am doing wrong.. Any one please give some suggestion to fix this issue.. i am running in on iPod 5th generation.. Even if i run in simulator also i am getting same issue..enter image description here

enter image description here


Try programmatically setting:

self.view.frame = [[UIScreen mainScreen] bounds]];

In your ViewController main file.

Otherwise, per this question, try creating a LaunchScreen.xib file if you are using a launch screen, or otherwise:

Go to your Target's settings and choose General, then App Icons and Launch Images. Now set "Launch Screen File" to your "main.storyboard" (or another storyboard if appropriate)