UIProgressHUD 与 UIAlertView 的嵌套使

2017-09-05  本文已影响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 层级一起带走。

上一篇 下一篇

猜你喜欢

热点阅读