扫码关注官方订阅号
项目中,有很多途径进入到我的订单中.如:
我的订单
我(顶级页面)->我的订单
首页(顶级页面)->商品详情->支付->支付成功->我的订单.
但是需求是,从我的订单只能返回到我的页面.即:
我
我的订单 -(back)->我
在这种需求下,如何来实现呢?
认证高级PHP讲师
方法一:
//回到根视图 navigationController?.popToRootViewControllerAnimated(animated: Bool)
方法二:
//回到指定视图 navigationController?.popToViewController(UIViewController, animated: Bool)
模态 要么整个伪导航
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
方法一:
方法二:
模态 要么整个伪导航