[转]iOS开发过程中怎么知道当前视图控制器是怎么来的?

1.present.2.dismissed.3.push.4.pop.

- (BOOL)isBeingPresented NS_AVAILABLE_IOS(5_0);
- (BOOL)isBeingDismissed NS_AVAILABLE_IOS(5_0);

- (BOOL)isMovingToParentViewController NS_AVAILABLE_IOS(5_0);
- (BOOL)isMovingFromParentViewController NS_AVAILABLE_IOS(5_0);

作者:薛雪峰
链接:http://www.zhihu.com/question/26485743/answer/33062225
来源:知乎
著作权归作者所有,转载请联系作者获得授权。

 

Leave a Reply

Your email address will not be published. Required fields are marked *