- AppsFlyer 【第三方】实际是 Universal Link 长链接;在app之间跳转
- scheme跳转,自定义URL,实际也是启动应用的URL,也可APP 之间跳转;
- jumpAction: app内页面之间跳转,controller
-
跳到一级页面:获tabbarController【rootVC】,调用系统方法,pop回rootVC
if let window = UIApplication.shared.delegate?.window,
let controller = window?.rootViewController,
let tabBarController = controller as? DSTabBarController {
return tabBarController
}
// UIApplication.shared.delegate?.window 获取app的window
// UINavigationController的 popToRootViewController
// UITabBarController的selectedIndex设置当前选择的tab,效果相当于跳转