后退按钮在拆分视图中消失

时间:2016-12-27 16:39:03

标签: ios swift uinavigationcontroller uisplitviewcontroller

UITabViewController 中嵌入 UISplitViewController 后,导航栏上的后退按钮将变为全屏图标: enter image description here

它是segue准备代码:

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    if segue.identifier == "showDrugDetails" {
        //foo
        controller.navigationItem.leftBarButtonItem = self.splitViewController?.displayModeButtonItem
        controller.navigationItem.leftItemsSupplementBackButton = 
    }
}

如何取回后退按钮? (iPhone上一切正常)

编辑:故事板 enter image description here

0 个答案:

没有答案