I think I found a bug in UIKit, but first I want to be sure I’m not insane.
I have a tab bar with a disabled tabBarItem in it. If I present an action sheet from the tab bar, then cancel/press any button in it, after the action sheet dismisses the tab bar item appears enabled, but cannot be clicked.
I want it to stay disabled.
I uploaded an example project here. Run it in the simulator and press the action sheet button on the first view controller. Note the state of the second tab bar item before and after the sheet appears. The project itself is a standard “Tabbed Application” template with one tab item disabled and an IBAction for the button added.
Is this a bug, or am I misusing the APIs?
Looks like a bug it is…
As a quick and safe workaround add this to the view controller (assuming it will be an UIActionSheet’s delegate)