Fix bug that lost detail view when transitioning to three panel mode
This commit is contained in:
parent
54f6607621
commit
8753790a19
|
@ -913,12 +913,6 @@ private extension AppCoordinator {
|
|||
|
||||
} else {
|
||||
|
||||
masterTimelineViewController!.navigationItem.leftBarButtonItem = nil
|
||||
|
||||
let subSplit = ensureDoubleSplit()
|
||||
let masterTimelineNavController = subSplit.viewControllers.first as! UINavigationController
|
||||
masterTimelineNavController.viewControllers = [masterTimelineViewController!]
|
||||
|
||||
let controller: UIViewController = {
|
||||
if let result = detailViewController {
|
||||
return result
|
||||
|
@ -927,6 +921,12 @@ private extension AppCoordinator {
|
|||
}
|
||||
}()
|
||||
|
||||
masterTimelineViewController!.navigationItem.leftBarButtonItem = nil
|
||||
|
||||
let subSplit = ensureDoubleSplit()
|
||||
let masterTimelineNavController = subSplit.viewControllers.first as! UINavigationController
|
||||
masterTimelineNavController.viewControllers = [masterTimelineViewController!]
|
||||
|
||||
let navController = addNavControllerIfNecessary(controller, showButton: false)
|
||||
subSplit.showDetailViewController(navController, sender: self)
|
||||
|
||||
|
|
Loading…
Reference in New Issue