setDetailViewController to replace current one not working #41

Open
LiteWait opened this Issue Jul 6, 2011 · 1 comment

Projects

None yet

2 participants

@LiteWait
LiteWait commented Jul 6, 2011

As a test using the demo application I am trying to replace the detail view with another controller.

I instantiate my new detailviewcontroller and try and use MGSplitViewController:setDetailViewController and nothing happens.

I can trace the code till it hits [self layoutSubViews] but the view doesn't change.

What am I doing wrong here?

@acf
acf commented Oct 27, 2011

I've seen this issue when you try and switch the detail programmatically before the master popover has ever been displayed...

workaround is to programmatically show then hide the popover prior to the setDetail call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment