Hi,
I want to prevent a view from exiting when the users hits the top left navigation bar button. If I can do this, I can then ask them if they want to save their work or discard it.
I tried this. But it does not give me the pretty arrow on the left hand side, instead it just gives me a button.
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:nil action:nil];
I also tried.
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:nil action:nil];
But that did not work. I did not see a way to override the selector of this either? Anyone else had any luck.
Cheers, John.