Ios打开和结束控制器的两种方式

2018-09-13  本文已影响0人  宁静世界

方式1

打开
self.navigationController?.pushViewController(vc, animated: true)

退出
self.navigationController?.popViewController(animated: true)

方式二

打开
self.present(activityVC, animated: true, completion: { () -> Void in

    })

退出
self.dismiss(animated: false, completion: nil)

上一篇下一篇

猜你喜欢

热点阅读