Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>1) Why do I need two "UINavigationControllers?" Couldn't I just create the "viewController" array using the "master" and "detail" view controllers themselves?"</p> </blockquote> <p>You don't need. But it's a way. You have the ability to push the <code>masterViewController</code>as well as the <code>detailViewController</code>. Look at the layout in Storyboard. With using segue you can change the controllers on each side as you like.</p> <blockquote> <p>2) What does it do setting the "detailViewController" as the "delegate?" What actually gets delegated?</p> </blockquote> <p>The <code>UISplitView</code>get's delegated. The <code>detailViewController</code> will take care of the interface changing in portrait and landscape mode. See <code>UISplitViewDelegate</code> in the <a href="https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UISplitViewControllerDelegate_protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40009454" rel="nofollow">documentation</a>.</p> <p>Showing and Hiding View Controllers</p> <pre><code>– splitViewController:shouldHideViewController:inOrientation: – splitViewController:willHideViewController:withBarButtonItem:forPopoverController: – splitViewController:willShowViewController:invalidatingBarButtonItem: – splitViewController:popoverController:willPresentViewController: </code></pre> <blockquote> <p>3) And finally, if I wanted to push additional items onto the "DetailViewController" stack, would I just use the "DetailViewController" class to push using the "didSelectRow.." method, or would I need to do updates to self.splitViewController.viewControllers property instead?</p> </blockquote> <p>Yes you can push in the <code>masterViewController</code>with the tableView selection. You can push either with the new controller on the <code>masterViewController</code>stack by pushing in the </p> <pre><code>- (void)viewDidAppear:(BOOL)animated </code></pre> <p>and you can push in any way you like. You don't have to update the <code>self.splitViewController.viewControllers</code> property. Maybe you have to set the delegate to your new <code>detailViewController</code>.</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. This table or related slice is empty.
    1. This table or related slice is empty.
    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