Change the width of Master in UISplitViewController

前端 未结 16 1737
自闭症患者
自闭症患者 2020-11-28 05:55

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 a

16条回答
  •  死守一世寂寞
    2020-11-28 06:56

    You can use GSSplitViewController. This one will work on iOS 7 and 8

    splitView = [[GSSplitViewController alloc] init];
    splitView.masterPaneWidth = 180;
    

    You can also include it by adding pod 'GSSplitViewController' to your Podfile.

提交回复
热议问题