@@ -655,6 +655,11 @@
noticeView.curNoticeModel = model;
+ //异常处理
+ if(![iTools getKeyWindow]){
+ return;
+ }
+
[[iTools getKeyWindow] addSubview:noticeView];
[noticeView mas_makeConstraints:^(MASConstraintMaker *make) {