Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Altough not pretty, the solution suggested <a href="https://stackoverflow.com/questions/16405927/ipad-uisplitviewcontroller-phantom-master-view-controller">here</a> works. This is how you would implement the solution:</p> <pre><code>-(IBAction)buttonTapped:(id)sender { StandardViewViewController *sv = [[StandardViewViewController alloc] initWithNibName:nil bundle:nil]; sv.modalPresentationStyle = UIModalPresentationPageSheet; // &lt;-- Add this [self.splitViewController presentViewController:sv animated:YES completion:nil]; } </code></pre> <p>In the StandardViewController.m add this:</p> <pre><code>-(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; //implicitly in Portrait orientation. if(orientation == UIInterfaceOrientationLandscapeRight || orientation == UIInterfaceOrientationLandscapeLeft){ CGRect temp = CGRectZero; temp.size.width = fullScreenRect.size.height; temp.size.height = fullScreenRect.size.width; fullScreenRect = temp; } return fullScreenRect; } </code></pre> <p>To make it prettier you could put the code for the StandardViewController into a new class that the StandardViewController could extend on.</p> <p>And, yes, this looks like a bug.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload