swift - Xcode - How to make that master and detail controller shows at the same time? -


i read , found enter link description here when did got error "fatal error: array index out of range". have uisplitviewcontroller, uitabbarcontroller (it master) , several uiviewcontrollers. want show both master controller , detail controller @ same time in portrait orientation looks in horizontal orientation. please me.

my interface looks enter image description here

i found simple solution. made class uisplitviewcontroller wrote following code within it.

import uikit  class split: uisplitviewcontroller, uisplitviewcontrollerdelegate {      override func viewdidload() {         super.viewdidload()         self.delegate = self     }      override func didreceivememorywarning() {         super.didreceivememorywarning()     }      func splitviewcontroller(svc: uisplitviewcontroller, shouldhideviewcontroller vc: uiviewcontroller, inorientation orientation: uiinterfaceorientation) -> bool {         return false     } } 

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -