首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

弹出对话框的运用

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

弹出对话框的使用

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

?

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

?

?

热点排行