I have a UINavigationController that pushes new views on the stack. In one view the user has the option to save data to a PLIST before exiting if data exists. When the user presses the back button I check to see if there is data in an array in the -(void)viewWillDissapear: Method.
If there is data, I present a UIAlert to ask the user what to do but the UIAlert pause, or override the the NavController to stop it from going back to the last view.
I only want to present the option to save as they are exiting the view controller. OK to save or Cancel to not save the data? IS UIAlert not the thing to use, or should this go into a different method that will pause the removal of the current view on the stack?
If there is data, I present a UIAlert to ask the user what to do but the UIAlert pause, or override the the NavController to stop it from going back to the last view.
I only want to present the option to save as they are exiting the view controller. OK to save or Cancel to not save the data? IS UIAlert not the thing to use, or should this go into a different method that will pause the removal of the current view on the stack?