Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

slammers

macrumors newbie
Original poster
Sep 28, 2008
6
0
I have an App that pushes many UIViewControllers. If one view has data that has been changed I need to prevent the user from pressing the standard back navigation button.

I thought I could just implement the UINavigationBarDelegate Protocol function shouldPopItem:

In Interface builder I added a NavigationBar and set the Delegate to the FileOwner.

However, if I add the function

- (BOOL)navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item

It never gets called.

Is it not possible to prevent the Navigation controller for poping a view?

Thanks
Shawn
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.