I am trying to layout my xib so that layout fits in both iphone 5 (4 inches retina) and 3.5 devices.
Because I have to support IOS-5 I cannot use autolayout. I have
Try adding this to all your controllers which need to support iPhone 5:
- (void) loadView
{
[super loadView];
self.view.frame = [UIScreen mainScreen].bounds;
}
I was having an issue with 3.5" vs. 4" as well, and I misunderstood what was wrong so I wanted to document it here incase it helps anyone.
If you are trying to access self.view.frame
it will not be correctly reported until viewDidAppear
or some similar event. If you try to access self.view.frame
from within viewDidLoad
then you can be reported the dimensions of the frame before autosizing takes place.