/ Published in: iPhone

Code taken from comment by 'William Jockusch' in the URL.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
-(void) viewWillDisappear:(BOOL)animated { if ([self.navigationController.viewControllers indexOfObject:self]==NSNotFound) { // back button was pressed. We know this is true because self is no longer // in the navigation stack. } [super viewWillDisappear:animated]; }
URL: http://www.comanswer.com/question/setting-action-for-back-button-in-navigation-controller
Comments
