您的位置:首页 > 产品设计 > UI/UE

为UIAlertView上的按钮添加方法,需要重写协议中对话框按钮点击事件方法

2012-11-21 16:58 686 查看
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSinteger)buttonIndex

{

if(alertView == 定义的那个UIAlertView名字(需是全局变量))

{

if(buttonIndex == 0)

{

...

}

if(buttonIndex == 1)

{

...

}

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐