I have a UIBarButtonItem that just doesn\'t want to get disabled. Short version: when I call
[myBarButtonItem setEnabled:NO];
Nothing happe
In my case (Swift) I had 2 barButtonItems added as an array - so to disable them this did the trick
navigationItem.rightBarButtonItems?.first?.enabled = false navigationItem.rightBarButtonItems?.last?.enabled = false