How to hide master view in UiSplitviewcontroller in ipad

后端 未结 9 1592
野的像风
野的像风 2020-12-08 10:44

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

9条回答
  •  清歌不尽
    2020-12-08 11:09

    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.)

提交回复
热议问题