In iOS7 I was able to create a full screen view using the following code:
- (void)loadView {
CGSize screenSize = [UIScreen mainScreen].bounds.size;
CGRect frame = CGRectMake(0, 0, screenSize.height, screenSize.width);
UIView *view = [[UIView alloc] initWithFrame: frame];
self.view = view;
}
When moving to iOS8 this code does not work properly, the screen is cut off on and scaled on the right side, similar to this:
--------------- ---------------
| | | | |
| iOS7 | | iOS8 | |
| Full Screen | | Cut Off | |
| | | | |
| | | | |
--------------- ---------------
This is affecting all full screen views in my app which are programmatically generated, any ideas here?