Orientation issue while presenting Modal ViewController
- by Jacky Boy
Current scenario:
Right now I am showing a UIViewController using a segue with the style Modal and presentation Sheet. This Modal gets its superview bounds change, in order to have the dimensions I want, like this:
- (void)viewWillLayoutSubviews
{
[super viewWillLayoutSubviews];
self.view.superview.bounds = WHBoundsRect;
}
The only…