我是靠谱客的博主 缥缈野狼,这篇文章主要介绍模态对话框 UIAlertView,现在分享给大家,希望可以做个参考。



//显示双按钮对话框
- (void)showDialog2bt:(NSString*)msg bt1:(NSString*)bt1Title bt2:(NSString*)bt2Title{
UIAlertView *alert =[[UIAlertView alloc] initWithTitle:@""
message:msg
delegate:self
cancelButtonTitle:bt1Title
otherButtonTitles:bt2Title,nil];
[alert show];
}

//响应事件
- (void)alertView:(UIAlertView*)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{

if (buttonIndex == 0) {

}else if (buttonIndex == 1) {

}
}

最后

以上就是缥缈野狼最近收集整理的关于模态对话框 UIAlertView的全部内容,更多相关模态对话框内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(120)

评论列表共有 0 条评论

立即
投稿
返回
顶部