【发布时间】:2011-12-18 08:16:55
【问题描述】:
我有一个 UIActionSheet,我正在指定取消按钮,但是当它被点击时它不会关闭?
UIActionSheet *actionSheet = [[[UIActionSheet alloc]initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Target Complete" otherButtonTitles:nil] autorelease];
[actionSheet showInView:self.view];
根据文档,我不需要任何代码,即使我尝试实现 didCancel 委托方法,它也从未调用过?
【问题讨论】:
标签: iphone ios uiactionsheet