如,a控制器push到b代码是这样的,
// [a pushViewController:b animated:Yes]
1>如果想拿到push后的界面,做一些操作,就用presentedViewController
// a presentedViewController -> b2>如果想拿到push前的界面,做一些操作,就用presentingViewController
// b presentingViewController - a总之:
- 带ed的就是push后的界面,想拿到push后的界面,就用push前的界面调用presentedViewController
- 带ing就push前的界面,想拿到push前的界面,就用push后的界面调用presentingViewController