I have an actionsheet that is created from an UIBarButtonItem.
The bar button item programmaticly added when a view controller that is in a tab bar controller that is in a nav controller is show
- navigation controller
-tab bar controller
- view controller (bar button item created in viewdidload and shown in viewwillappear)
The actionsheet loads and displays correctly, the problem is to do with how it is dismissed. It dismisses correctly if i tap anywhere within the view but not when I tap on the navigation bar and this means that i can tap the UIBarButtonItem multiple times and actionsheets are created and overlayed.
I know I could do some logic to see if the actionsheet is being displayed and not recreate it and I could also add some logic to viewwilldisappear to manually remove the actionsheet but was wondering why it isn't working out of the box