objective c - UISplitViewController, make MasterView appear programmatically in portrait iOS 8 -
objective c - UISplitViewController, make MasterView appear programmatically in portrait iOS 8 -
i'm trying implement splitviewcontroller in ios 8, due nature of detailview (horizontal collectionview), default behavior (swiping left right) making masterview visible can't used.
so i'm trying implement behavior programmaticaly. i've tried send swipe gesture root view of detailview, won't either. i've looked through of answers here on so. of them suggest using method:
[splitviewcontroller willrotatetointerfaceorientation:self.interfaceorientation duration:0];
this method deprecated in ios 8. help/lead on matter appreciated.
found solution create masterview appear without swipe in portrait mode.
[self.splitviewcontroller setpreferreddisplaymode:uisplitviewcontrollerdisplaymodeprimaryoverlay];
ios objective-c uisplitviewcontroller
Comments
Post a Comment