ios开发swift-跳转问题解析
程序员文章站
2022-09-02 23:24:16
//psuh
self.navigationController?.pushViewController(TwoVc, animated: true);
//pop...
//psuh
self.navigationController?.pushViewController(TwoVc, animated: true);
//pop
self.navigationController?.popViewController(animated: true);
//静态跳转
// self.present(<#T##viewControllerToPresent: UIViewController##UIViewController#>, animated: <#T##Bool#>, completion: <#T##(() -> Void)?##(() -> Void)?##() -> Void#>)
//dismiss
//静态返回 //self.dismiss(animated: <#T##Bool#>, completion: <#T##(() -> Void)?##(() -> Void)?##() -> Void#>)