弹出对话框的运用

弹出对话框的使用实现方法和操作表十分类似,先在类定义的时候加上UIAlertViewDelegate,用于以后处理按钮事

弹出对话框的使用

实现方法和操作表十分类似,先在类定义的时候加上UIAlertViewDelegate,用于以后处理按钮事件。

?

- (void)alertView:(UIAlertView *)alertViewclickedButtonAtIndex:(NSInteger)buttonIndex{    NSString *newText = [[NSString alloc] initWithFormat:@"%d", buttonIndex];    leftLabel.text = newText;    [newText release];}
?

?

?