0

当我按下按钮时,我会在 IBAction 中插入 UIAlert,我该怎么做?此 UIAlert 必须显示消息“完成”和关闭它的按钮。

4

1 回答 1

4
- (IBAction)onShowAlertView 
{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"done" 
                                                        message:@"" 
                                                       delegate:nil 
                                              cancelButtonTitle:@"close" 
                                              otherButtonTitles:nil];
    [alertView show];
    [alertView release];
}
于 2011-04-07T09:51:55.160 回答