uisplitviewcontroller

UISplitViewController in a TabBar ( UITabBarController )?

允我心安 提交于 2019-11-26 11:54:32
问题 I am in kind of situation that I need to start with a tab based application and in that I need a split view for one or more tabs. But it seems that split view controller object can not be added to the tabbarController. (Although tabbar object can be added to the splitviewcontroller). The problem can be seen otherways: I have a full screen in the left part I have a table view when any row is selected in the table a popover should come out pointing that row. Now when any row in the popover is

Change the width of Master in UISplitViewController

牧云@^-^@ 提交于 2019-11-26 09:07:56
问题 The iPad programming guide says that the splitView\'s left pane is fixed to 320 points. But 320 pixels for my master view controller is too much. I would like to reduce it and give more space to detail view controller. Is it possible by anyway? Link to the document which speaks about fixed width. 回答1: If you subclass UISplitViewController, you can implement -viewDidLayoutSubviews and adjust the width there. This is clean, no hacks or private APIs, and works even with rotation. - (void

Best way to switch between UISplitViewController and other view controllers?

时光总嘲笑我的痴心妄想 提交于 2019-11-26 05:33:42
问题 I\'m authoring an iPad app. One of the screens in the app is perfectly suited to using a UISplitViewController. However, the top level of the app is a main menu, which I don\'t want to use a UISplitViewController for. This presents a problem, because Apple state that: UISplitViewController should be the top level view controller in the app, i.e. its view should be added as the subview of UIWindow if used, UISplitViewController should be there for the lifetime of the app -- i.e. don\'t remove

SplitView like Facebook app on iPhone

筅森魡賤 提交于 2019-11-26 01:55:20
问题 I want to create an iPhone app that uses a navigation scene similar to the one pictured in the link Please note I do not want this to only work for iPad, I want it to work for iPhone exactly as pictured, when you click on a tableview item it hides the tableview and makes that view full screen. I want ideas on how to do this because I cannot figure it out myself. Thanks 回答1: Facebook guys have done brilliant job in the new version of the app. The similar open source code can be found from here