Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

initWithContentViewController now causes a SIGABRT in iOS 5.0.1 #51

Open
adammcnamara opened this Issue · 1 comment

2 participants

@adammcnamara

Setting the masterViewController as the UIPopoverController's content view causes a SIGABRT.

The line:

_hiddenPopoverController = [[UIPopoverController alloc] initWithContentViewController:self.masterViewController];

Causes the following exeception:

Terminating app due to uncaught exception 'NSGenericException', reason: 'The content view controller argument must be the root of its associated view controller hierarchy.'

You can avoidt his by "de-parenting" self.masterViewController prior to creating the UIPopoverController. However, you then lose reference to the splitViewController from self.masterViewController.

@mrJakez

exactly as it appears there:
Link the masterviewcontroller against the right navigationcontroller. If you are using a MainWindow.XIB look at the splitViewController outlets - there the masterViewController must be linked against the Navigation Controller. Not against the "RootViewController"

greetings
-Dennis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.