Is there a way to pop the current view from the Navigation Controller? Ideally in viewDidLoad, I would like to perform some sanity checking and if it fails, popup an error dialog and automatically close the current view (remove from parent N.avigation Controller)
Is there a way to pop the current view from the Navigation Controller? Ideally
Share
Look at the
-popViewControllerAnimated:method. You might also look atUIAlertViewfor the error dialog box, and pop the current view controller from within the alert view delegate method, after the user clicks “OK” or the like.