Reputation: 2014
So, I have an iPad app with TabbarController and one ViewController. And the point is that when I enter the app in Portrait orientation and then rotate to the landscape, only 2/3 of the screen receive touches. And what really makes me mad is that this situation happens only in iOS 7 and higher. Please, help me how to solve this issue or tell me what am I doing wrong?
Upvotes: 2
Views: 86
Reputation: 911
There are some issues with the UITabBarController discussed over at developer.apple.com. Try doing something like this in your viewcontroller:
- (void) viewDidLoad{
[super viewDidLoad];
// ...
[self.view setAutoresizingMask:UIViewAutoresizingFlexibleWidth|
UIViewAutoresizingFlexibleHeight |
UIViewAutoresizingFlexibleBottomMargin |
UIViewAutoresizingFlexibleRightMargin];
}
and see if that helps.
Upvotes: 3