I have a UIBarButtonItem that just doesn\'t want to get disabled. Short version: when I call
[myBarButtonItem setEnabled:NO];
Nothing happe
You can disable the left navigation button from inside an UIViewController like this, without using any IBOutlet:
self.navigationItem.leftBarButtonItem.enabled = NO;
To disable the right navigation button:
self.navigationItem.rightBarButtonItem.enabled = NO;
Swift3
self.navigationItem.rightBarButtonItem?.isEnabled = false