title: ImageView Segue to SplitView
body: <p>I'm trying to implement this example <a href="http://www.raywenderlich.com/6475/basic-security-in-ios-5-tutorial-part-1" rel="nofollow">Basic Security in iOS 5</a>, but instead of performing the segue to a tableView I'm trying to make the segue to a splitViewController. When it tries to make the segue it throws this error if I use replace:</p>
  
  <blockquote>
    <p><em>*</em> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not find a split view controller ancestor for '', while performing a split view controller replace segue (identifier 'LoginSegue') with destination '''</p>
  </blockquote>
  
  <p>and if I use modal (like in the tutorial):</p>
  
  <blockquote>
    <p><em>*</em> Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a Split View Controllers modally .'</p>
  </blockquote>
  
  <p>Any suggestions?</p>