I\'m adding a UIImageView to the UIViewController\'s UIView as I would normally, with the frame of the image view being the same as self.view
to make sure that the
on the viewDidLoad
method your UIViewController's xib is loaded and your updated values regarding your User Interface is not detected.
This causes no trouble if your UIView is exactly same (no UINavigationBar, UITabbar, status bar or device -iPhone 3.5 inch / 4 inch change). But if you are changing anything in the process, you might get false values on viewDidLoad
.
Easiest way to check this is to debug your screen and view bounds on the viewDidAppear, after UI gets updated.
Please check your xib/storyboard. There is a change between your current UI and designed interface.
To solve this you might use a function updateUI
on the viewDidAppear
and update related view's again.
[self.imageView setFrame:self.view.frame]
this will fix it.