I’m using a tab bar controller in my application.
I can change the view by clicking the buttons on the tab, but when I click the tab button it should display an alert for confirmation from the end user, like: “You should leave this page”.
If “Yes”, then navigate, otherwise it should stay on the same page…
The alert does not show up, though.
This is the code for alertview, call this in a method which gets called after tab button is clicked….And add UIAlertView delegate
Also override the method