美文网首页
UIProgressHUD 与 UIAlertView 的嵌套使

UIProgressHUD 与 UIAlertView 的嵌套使

作者: 东方诗空 | 来源:发表于2017-09-05 16:01 被阅读28次

[UIProgressHUD showText:@"该用户拉黑已取消" inView:showTipsInView];

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:pstrMessage delegate:objAlerts cancelButtonTitle:nil otherButtonTitles:nil];

两个相互嵌套使用 会有层级关系的冲突,
在使用UIAlertView 的时候 ,在确定和取消按钮的地方 加入
[UIProgressHUD showText:@"该用户拉黑已取消" inView:showTipsInView];
那么该提示语会被当前的UIWidow 层级一起带走。

相关文章

网友评论

      本文标题:UIProgressHUD 与 UIAlertView 的嵌套使

      本文链接:https://www.haomeiwen.com/subject/yftejxtx.html