iPad 上的 UIActionSheet 不显示取消按钮
我试图在 UIActionSheet
中显示取消按钮,但它没有显示,这是可接受的行为吗?请指教。
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"Are you sure you want to clear the cache?"
delegate:self
cancelButtonTitle:@"No"
destructiveButtonTitle:@"Yes"
otherButtonTitles:nil];
[actionSheet showInView:self.view];
[actionSheet release];
I am trying to show cancel button in UIActionSheet
but it's not showing, is that an acceptable behavior? please advice.
UIActionSheet *actionSheet = [[UIActionSheet alloc]
initWithTitle:@"Are you sure you want to clear the cache?"
delegate:self
cancelButtonTitle:@"No"
destructiveButtonTitle:@"Yes"
otherButtonTitles:nil];
[actionSheet showInView:self.view];
[actionSheet release];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iPad 对于操作表及其取消按钮有一些特殊规则,具体取决于您显示它的位置:
以下是更多说明的链接:http://crazyviraj.blogspot。 com/2010/05/showing-cancel-button-in.html
iPads have some special rules about action sheets and their cancel buttons, depending on where you are displaying it from:
Here's a link with more explanation: http://crazyviraj.blogspot.com/2010/05/showing-cancel-button-in.html