欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

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#>)