UIActionSheet取消按钮不解除动作表

编程入门 行业动态 更新时间:2024-10-08 18:33:25
本文介绍了UIActionSheet取消按钮不解除动作表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个UIActionSheet并且我指定了取消按钮,但是当它被点击时它不会被忽略?

I have an UIActionSheet and I am specifying the cancel button however it does not dismiss when its tapped?

UIActionSheet *actionSheet = [[[UIActionSheet alloc]initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Target Complete" otherButtonTitles:nil] autorelease]; [actionSheet showInView:self.view];

根据文档,我不需要任何代码,即使我尝试实现didCancel委托从未调用过的方法?

According to the documentation I don't need any code and even when I try and implement the didCancel delegate method its never called?

推荐答案

您需要在iPhone上的任务栏或工具栏上显示,因为它会剪切一些控件,如果你在视野中使用显示。

You need to display from a taskbar or a toolbar on iPhone as it clips some of the controls if you use display in view.

更多推荐

UIActionSheet取消按钮不解除动作表

本文发布于:2023-11-28 01:05:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640358.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:按钮   动作   UIActionSheet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!