Probably not very, the proposed solution works here . Here's how you could implement the solution:
-(IBAction)buttonTapped:(id)sender { StandardViewViewController *sv = [[StandardViewViewController alloc] initWithNibName:nil bundle:nil]; sv.modalPresentationStyle = UIModalPresentationPageSheet;
In StandardViewController.m add this:
-(void)viewWillLayoutSubviews { self.view.bounds = [StandardViewViewController screenBoundsForCurrentOrientation]; [super viewWillLayoutSubviews]; } +(CGRect)screenBoundsForCurrentOrientation { return [self screenBoundsForOrientation:[UIApplication sharedApplication].statusBarOrientation]; } +(CGRect)screenBoundsForOrientation:(UIInterfaceOrientation)orientation { UIScreen *screen = [UIScreen mainScreen]; CGRect fullScreenRect = screen.bounds;
To make it more beautiful, you can put the code for the standard monitor in a new class that can extend the StandardViewController.
And yes, it looks like a mistake.
source share