2

I need to change width sizes of View Controllers in Split View Controller. I mean the default value of first view controller is 320. Second one is 703. I need to change them with 605 and 419. Btw project is iPad - Landscape project. So is there any way to do this ?

Bacteria
  • 8,406
  • 10
  • 50
  • 67
letitbefornow
  • 427
  • 6
  • 20
  • Please refer this [http://stackoverflow.com/questions/2949067/change-the-width-of-master-in-uisplitviewcontroller/42803037#42803037](http://stackoverflow.com/questions/2949067/change-the-width-of-master-in-uisplitviewcontroller/42803037#42803037) – Madasamy Mar 15 '17 at 07:11

1 Answers1

8

The class UISplitViewController exposes a property to change the width of the master view. This property is preferredPrimaryColumnWidthFraction with which you can specify the width of the master view as a percentage respect the total width of the split view.

LuckyStarr
  • 1,468
  • 2
  • 26
  • 39
  • Thank you. Should I use this property on SplitViewController.swift or DetailViewController.swift or MasterViewController.swift ? – letitbefornow Sep 02 '15 at 07:26
  • This is a property of the SplitViewController. You have to define it when you create the SplitViewController. – LuckyStarr Sep 02 '15 at 07:33