1

If you create an iPad Master-Detail Application and use Portrait orientation, it gives you a slide out tableView on the left.
1. How do you make it to show on the right?

Also, in the landscape orientation, it is split in into two views.

  1. How do you make it so that it will be the same as the Portrait View, like slide the TableView out?

  2. Is it possible to adjust the size of the Detail View?

tipsywacky
  • 3,374
  • 5
  • 43
  • 75

2 Answers2

2

If you dont want two views in landscape, why do you need a splitView at all? You can just have a UIView with a popover button on the top bar. Then you can add the tableviewcontroller to the popover. To show it to the right you can define the rect or use the rightbarbuttonitem to add the popover.

zahreelay
  • 1,742
  • 12
  • 18
0

You can have master on right by passing masterviewcontroller as second parameter to the array assigned to splitViewController.viewcontroller. However, you cannot resize the master and detail views. Hence you will end up having a bigger masterView than the detailview.

Looking at limited functionality of UISplitViewController, it may not be possible to have master on right(properly working as per your requirements). You can have your own controller to get this done or try using opensource options like MGSplitViewController.

you may also like to look into this discussion

Community
  • 1
  • 1
suresh
  • 2,365
  • 1
  • 26
  • 36