Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You've got several options.</p> <p>You could show Next as a modal view controller.<br> You could use a tab controller to switch between the split view and the Next view.<br> You could use some other container controller to switch between the split view and the Next view. </p> <p>Without knowing anything else about your app, my guess is that you're showing Next in response to some user interaction in the detail view, so I'm guessing that presenting Next as a modal view controller is the best option. It's also the easiest.</p> <p>Here's how to present Next as a modal view controller:</p> <pre><code>- (void) showNext { Next* any = [[[Next alloc] initWithNibName:nil bundle:nil] autorelease]; any.modalPresentationStyle = UIModalPresentationFullScreen; any.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentModalViewController:any animated:YES]; } </code></pre> <p>You can use different modalPresentationStyle &amp; modalTransitionStyle values to get different effects.</p> <p>To dismiss Next when you're done with it, you'll need to tell it's parentViewController to dismiss it. Just add this code to Next, and call it when you want to dismiss the Next view: </p> <pre><code>- (IBAction) dismiss { [self.parentViewController dismissModalViewControllerAnimated:YES]; } </code></pre> <p>I usually want to call this sort of thing from a Close button somewhere, so I usually make it an IBAction.<br> IBAction is the same as void, but lets you hook up stuff easily in Interface Builder.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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