ios - How to make a splitViewController behave the same on all devices -
for reasons rather not go into, have splitviewcontroller want behave same way on screens.
in other words, not wish have split screen master-detail on left-right, rather show master or detail, depending on how user using it.
you can set uisplitviewcontroller
's preferreddisplaymode
property uisplitviewcontrollerdisplaymodesidebyside
(the default uisplitviewcontrollerdisplaymodeautomatic
). system try honor wishes, you'll have specify custom primarycontentwidth
or preferredprimarycolumnwidthfraction
property force on compact device.
Comments
Post a Comment