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 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 } }