Is it possible to determine if view is dissapearing without additional BOOL
field and setting it's value to YES/NO in -viewWillDissapear
-viewDidDissapear
?
I am trying to determine if view is not dissapearing casued by "back" button (pop to previous controller). Right now I have isNavigationInProgress
property that do this for me.
Not sure I understand your question correctly.
However it looks like you are talking about isMovingFromParentViewController
, isMovingToParentViewController
, isBeingPresented
, isBeingPresented
and isBeingDismissed
properties
These properties allows you to get the cause of -viewWillDissapear
and -viewDidDissapear
calls.
See more info on Apple site, UIViewController reference