I use UINavigationbar, it works fine.
But now i have a paramater, which is global, to count the pushUIViewController for using popToUIViewController at index (index of screen i wanna be back). it worked but have an error when i click on UINavigation Left Button to get back to previous screen, this makes paramater continuing count (++).
then when i get back on the screen i expect the paramater had a different value.
How can I check if button of UINavigationbar is clicked or not???
Thanks in advance
Add button manually on navigation bar:
Add titleTap method to catch the tap event :