I have some code to clean up in my viewWillDisappear:
, which I only want to use when the view is moving back to the parent view controller.
- (void)
Your issue is how you are dismissing your modal view. How is rootViewController being defined?
When I call [self dismissModalViewControllerAnimated:YES]
then [self isBeingDismissed]
evaluates to true.
When I call [parentViewController dismissModalViewControllerAnimated:YES]
then [self isBeingDismissed]
evaluates to true, whereby parentViewController is the UIViewController that presented the modal view (note: not a UINavigationController).