uiactionsheet点击不能在动作表底部工作的非常奇怪的错误

Ale*_*lea 3 iphone uiactionsheet

我有一个uiactionsheet和按钮按钮在我第一次按它时没有正常工作,或第二次,但尝试后只有很多次.我尝试删除底部的取消按钮并留下按钮标题,但这些步骤都没有解决问题.这是我正在使用的代码:

UIActionSheet *aSheet = [[UIActionSheet alloc]
                         initWithTitle:nil 
                         delegate:self 
                         cancelButtonTitle:nil 
                         destructiveButtonTitle: @"Close"
                         otherButtonTitles:@"6940313388", @"2", @"3", @"4", nil];
Run Code Online (Sandbox Code Playgroud)

Fra*_*itt 6

我发现,如果您从错误的视图中显示操作表,则视图中可能存在的任何底栏将阻止操作表的用户交互,但不会在视觉上模糊它.

尝试调用showFromToolbar:,showFromTabBar:showInView:查看哪些工作正常(我现在不记得了).