i have a navigation bar based app, i was saving data while the view was going back by pressing back button successfully. now i need to display an alert and take confirmation to save. the problem i am facing is, when i press ok in alert, the view is popped up and data for saving is invalid causing a crash
how to fix this ?
how to fix this ?