一旦 UIActionSheet 关闭,屏幕就会被锁定
我关闭了 UIActionSheet ,但屏幕被锁定并且没有响应。中心变亮,边缘区域的其余部分变暗。
-(void)actionSheet:(UIActionSheet *)menu didDismissWithButtonIndex:(NSInteger)buttonIndex
{
switch (buttonIndex) {
case 0:
return;
case 1:
return;
case 2:
return;
}
}
I dismissed the UIActionSheet , but the screen became locked out and unresponsive. The center became hightlighted and rest of edge area dimmed.
-(void)actionSheet:(UIActionSheet *)menu didDismissWithButtonIndex:(NSInteger)buttonIndex
{
switch (buttonIndex) {
case 0:
return;
case 1:
return;
case 2:
return;
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 UIActionSheet 在 UIAlertView 消失之前出现的问题。我通过在延迟 0.3 秒后调用呈现 UIActionSheet 的操作解决了这个问题。
Its the problem with UIActionSheet coming before UIAlertView disappears. I solved this problem by calling the action to present UIActionSheet after a delay of 0.3 seconds.