how to determine that the navigation bar's back button has been clicked and then showing a alert
<p>working on a game based project.i am having a view controller as GameScreen.
on the top of Gamescreen having a navigation bar with back button(default).Now if user clicks on back button i have to show alert.
so how to determine "backbutton got clicked."? 
any suggestion?
Thanks   </p>
