SyntaxFix
Write A Post
Hire A Developer
Questions
In my opinion the best solution.
- (void)didMoveToParentViewController:(UIViewController *)parent { if (![parent isEqual:self.parentViewController]) { NSLog(@"Back pressed"); } }
But it only works with iOS5+