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