Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initWithContentViewController now causes a SIGABRT in iOS 5.0.1 #51

Open
adammcnamara opened this issue Nov 27, 2011 · 1 comment
Open

Comments

@adammcnamara
Copy link

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
Copy link

mrJakez commented Sep 11, 2012

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants