【发布时间】:2013-03-09 03:51:21
【问题描述】:
我创建了一个应用程序。通过开发它,我使用长按按钮来显示警报。
这是我的代码:
- (IBAction)longPressDetected1:(UIGestureRecognizer *)sender {
// label1.text = @"Select Iran to observe its historical data projections ";
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@""
message:@"Press the blue button (+) to select your region "
delegate:self
cancelButtonTitle:@"Ok"
otherButtonTitles:nil];
[alert show];
}
问题:当我想使用cancelI按钮取消UIAlertView时,我必须按此按钮3次才能取消UIAlertView。这意味着 UIAlterview 不能一键取消。 你能帮帮我吗?
【问题讨论】:
-
这和 PHP 有什么关系?
-
对不起,这是 ipad 应用
标签: ios uigesturerecognizer uialertview