ios开发swift-跳转问题解析
程序员文章站
2022-04-23 17:09:05
//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#>)
上一篇: C++ new的用法