iOS--viewDidAppear和viewDidDisapp
2018-08-22 本文已影响100人
紫荆逸
5A9860526261D7F87DF58E250740A005.jpg
测试结果:
与跳转方式(push/present)有关:
self.navigationController?.pushViewController(vc, animated: true)
----ViewController---viewDidDisappear-------
---ViewController2----viewDidAppear-------
self.present(vc, animated: true, completion: nil)
---ViewController2----viewDidAppear-------
----ViewController---viewDidDisappear-------