报警相关
This commit is contained in:
@@ -30,11 +30,13 @@ open class AcceptOrderTool : NSObject {
|
||||
// 来到首页的救援中-待接单
|
||||
let tabBarVc = UIApplication.shared.dd_keyWindow.rootViewController as? MainTabBarController
|
||||
let currentNav = tabBarVc?.selectedViewController as? UINavigationController
|
||||
currentNav?.popToRootViewController(animated: false)
|
||||
tabBarVc?.selectedIndex = 0
|
||||
let nav = tabBarVc?.children.first as? UINavigationController
|
||||
let vc = nav?.children.first as? RescueController
|
||||
vc?.categoryView.selectItem(at: 0)
|
||||
currentNav?.popToRootViewController(animated: true)
|
||||
DispatchQueue.main.asyncAfter(deadline: .now()+0.25, execute: {
|
||||
tabBarVc?.selectedIndex = 0
|
||||
let nav = tabBarVc?.children.first as? UINavigationController
|
||||
let vc = nav?.children.first as? RescueController
|
||||
vc?.categoryView.selectItem(at: 0)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user