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 {
|
} else {
|
||||||
|
|
||||||
masterTimelineViewController!.navigationItem.leftBarButtonItem = nil
|
|
||||||
|
|
||||||
let subSplit = ensureDoubleSplit()
|
|
||||||
let masterTimelineNavController = subSplit.viewControllers.first as! UINavigationController
|
|
||||||
masterTimelineNavController.viewControllers = [masterTimelineViewController!]
|
|
||||||
|
|
||||||
let controller: UIViewController = {
|
let controller: UIViewController = {
|
||||||
if let result = detailViewController {
|
if let result = detailViewController {
|
||||||
return result
|
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)
|
let navController = addNavControllerIfNecessary(controller, showButton: false)
|
||||||
subSplit.showDetailViewController(navController, sender: self)
|
subSplit.showDetailViewController(navController, sender: self)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue