UIActionSheet cancel按钮不响应的问题
2012-05-27 12:05
302 查看
当APP中使用到tabbar,会出现部分按钮无法响应的问题。在xcode的控制台中也会报出相应的错误,提示使用从tabbar加载的信息。
解决方法如下:
UIActionSheet *removeActionSheet=[[UIActionSheet alloc]initWithTitle:titleforActionSheet delegate:selfcancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Ok" otherButtonTitles:nil, nil];
removeActionSheet.actionSheetStyle=UIActionSheetStyleDefault;
[removeActionSheet showInView:[UIApplication sharedApplication].keyWindow];
将原来showinView:self.view改为[[UIApplication sharedApplication].keyWindow]
解决方法如下:
UIActionSheet *removeActionSheet=[[UIActionSheet alloc]initWithTitle:titleforActionSheet delegate:selfcancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Ok" otherButtonTitles:nil, nil];
removeActionSheet.actionSheetStyle=UIActionSheetStyleDefault;
[removeActionSheet showInView:[UIApplication sharedApplication].keyWindow];
将原来showinView:self.view改为[[UIApplication sharedApplication].keyWindow]
相关文章推荐
- UIActionSheet的最后一个按钮 不响应的问题
- UIActionSheet的最后一个按钮 不响应的问题
- UIActionSheet 按钮不响应点击事件的解决方法
- UIActionSheet最后一个按钮没有响应的解决办法
- UIActionSheet 按钮不响应点击事件的解决方法
- UIActionSheet 按钮不响应点击事件的解决方法
- iOS7 - UIActionSheet 按钮不响应点击事件的解决方法
- UIActionsheet 的取消按钮问题
- UIActionSheet 按钮不响应点击事件的解决方法
- UIActionSheet 按钮不响应点击事件的解决方法
- 关于调用UIActionSheet后当点击“取消”按钮会遮挡住底部的tabbar的问题
- UIActionSheet 按钮不响应点击事件的解决方法
- UIActionSheet的Cancel按钮消失
- 编程常见问题记录:明明有响应按钮的事件,但程序就是无法捕获到
- <转>UIActionSheet取消按钮触摸被遮
- UIActionSheet弹窗按钮
- xib 不响应按钮单击事件问题
- UIActionSheet样式问题心得
- iOS7 UIActionSheet 写 弹出界面冲突 问题的解决
- android 自定义ListView 使其带单选框按钮,并解决item点击不响应的问题