读书人

弹出对话框的运用

发布时间: 2012-06-27 14:20:09 作者: rapoo

弹出对话框的使用

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

?

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

?

?

读书人网 >移动开发

热点推荐