Search code examples
ipaduisplitviewcontrollersegue

iPad Replace Segue -- Could not find a split view controller ancestor


I've connected a bunch of navigation controllers to my UISplitViewController to replace the detail view, however when I do I get this error

'Could not find a split view controller ancestor for '<UISplitViewController: 0x6a52f50>',
while performing a split view controller replace segue (identifier 'Queue') with
destination '<UINavigationController: 0x6870ff0>''

And I can usually guess what's going on from these internal inconsistencies but this one I literally have no idea -- any help is much appreciated!

Thanks!


Solution

  • Examine the sequence of segues leading into the source scene. If it doesn't contain a split view controller in the mix, you've found your problem. Replace segues can only be used in scenes that are presented in the context of a split view controller.