0

I am trying to use the UISplitViewController for iPhone portrait mode (since it will use navigation controller instead).

I tried to set the UISplitViewController's preferredDisplayMode = .primaryOverlay (which let user to swipe in/out master view from the left). However, this setting only works for iPad and Plus. iPhone still keep using navigation controller, ignoring my setting.

My question is - how to use UISplitViewController for iPhone? I see that Outlook iOS app can do this so it should be possible.

Thanks.

krlbsk
  • 1,051
  • 1
  • 13
  • 24
John Tam
  • 31
  • 3

1 Answers1

0

The UISplitViewController only works on iPads. On iPhone it acts like a master/detail view controller. If you want that UI style for iPhone you'll have to implement it yourself.

Duncan C
  • 128,072
  • 22
  • 173
  • 272