title: Segue destination types & how to find them in code
body: <p>Can anyone tell me how I can phrase an <code>if ()</code> statement to discover if a segue's destination view controller will appear in the Detail Split or in the Master Split?  </p>
  
  <p>I want to put the <code>if()</code> statement inside my <code>prepareForSegue:sender:</code> methods.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>All my detail views that are relevant to this question (at the moment) conform to a protocol and I am currently performing introspection on the destination controller using:</p>
  
  <pre><code>if ([segue.destinationViewController conformsToProtocol:@protocol(myProtocol)])...
  </code></pre>
  
  <p>I can see that this would not work if I wanted:</p>
  
  <ol>
  <li>To be able to show the same class in either Master or Detail of the splitView from time to time, and at the same time...</li>
  <li>I only want the if() statement to be true when the view is to be presented in the detail split.</li>
  </ol>
  
  <p>Things like <code>segue.destinationViewController.navigationController == ...</code> don't appear to be any use either.</p>
  
  <p>I was hoping that since we need to set "Master Split" or "Detail Split" when we set the segue up... there would be a way to access that information less circuitously.</p>
  
  <p><strong>SECOND EDIT:</strong></p>
  
  <p>The way I have this set up with using introspection does "work".  It just doesn't seem very "Object Oriented".  I don't think I should be querying the View Controller at all for this information, I can't see why the VC should know anything about which side of the splitView it will be displayed.  Surely the object that should hold onto this information is the Segue and, as I say, it appears this is being "set" in the storyboard when we select "Detail" or "Master" split.</p>
  
  <p>Maybe it isn't a property of anything, but I can't see how to get at it.</p>
  
  <p>I suppose I could query the destinationViewController in its viewWillAppear to discover which NavigationController it is in after it appears on screen but, again, it seems a bit "hacky".</p>