views:

866

answers:

3

Is there is any way to hide the master view in a splitviewcontroller programmatically. In my application the first screen will be of a splitviewcontroller, i don't need any split view for the next screens. How i can achieve this

A: 

I'm looking for a solution to this as well - I need to be able to display content obtained from using the UISplitView in a full screen mode once 'selected'. I.e. I have a menu of picture albums in my master view and a list of images to view in the detail view, I'd like to be able to view the image I select in detail view in a full screen view.

edit - sorry I did not mean to post this as an answer, rather as a comment.

Z4
... so delete it and post it as a comment
Jared P
A: 

presentmodalviewcontroller

Leon
This does not work if you try to go full view. Also you would not be able to add a tab view controller this way since it too wants to be the root controller.
Artilheiro
A: 

While it will not have nice transitions (sorry), you could do this by setting the root view to the detail view controller's view, and then swap views with the UISplitView and move the detail view to the UISplitView. (Actually you might be able to animate the view swap (push/flip/etc.) but it is a bad idea to change anything during view change animations, and moving the detail view to inside the UISplitView might qualify.)

Jared P