objective c - Initwithframe UIScreen Mainscreen Bounds height is wrong ios 9 -


i'm trying initialize custom view in viewcontroller. custom view has following code:

- (instancetype)initwithnib { self = [super initwithframe:[[uiscreen mainscreen] bounds]]; if (self) { 

the problem is, when run in emulator, height shorter fullscreen. running iphone 5s.

height wrong image

why happening? know there lot of posts people talk launch images , not tried little bit , still cant seem work. can outline me step step need do? thanks!

edit:

so did little more digging , in login viewcontroller, self.view.bounds.size.height 480 while same attribute 568 in page looks weird. why happening? how have bounds same whole app?

edit 2: added launch images of proper sizes , still doesn't work. size still wrong.... please help!


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -