A very strange error of email clicks not working at the bottom of the action sheet

I have a uiaewsheet, and the buttom button does not work correctly when I click it, or the second, but only a few times after trying. I tried to remove the cancel button below and leave the button name, however, none of these steps solved the problem. This is the code I'm using:

UIActionSheet *aSheet = [[UIActionSheet alloc]
                         initWithTitle:nil 
                         delegate:self 
                         cancelButtonTitle:nil 
                         destructiveButtonTitle: @"Close"
                         otherButtonTitles:@"6940313388", @"2", @"3", @"4", nil];
+3
source share
2 answers

I found that if you present an action sheet from the wrong view, whatever the bottom panel in your view, this blocks the user’s interaction with the action sheet, but does not visually hide it.

showFromToolbar:, showFromTabBar: showInView:, , ( ).

+6

...

[aSheet showInView:appDelegate.window]
+2

Source: https://habr.com/ru/post/1761566/


All Articles