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

EXC_BAD_ACCESS on UIAlertview code=1

2016-05-17 13:25 483 查看
UIAlertView * alert = [[UIAlertView alloc]initWithTitle:@"我的警告框"

message:@"这是一个警告框" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];

[alert show];

出现这个问题的原因:otherButtonTitles:@"确定"之后少写了nil
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: