pushViewController vs showDetailViewController

1.3k views Asked by At

Should I use UISplitViewController's showViewController: & showDetailViewController: methods alone to push/present view controllers from iOS 8?

I try to convert my app with adaptive UI. So using splitview controller as a rootviewcontroller. But confused about pushing view controllers.

Thanks

1

There are 1 answers

1
wj2061 On

You should always use showDetailViewController ,when present detailView from masterView.

In a horizontally regular environment, the split view controller installs vc as the secondary view controller.

In a horizontally compact environment, the split view controller presents vc modally.

Or You can keep use showDetailViewController in all cases and forget about showViewController ,the system will do the choice for you.