Selaa lähdekoodia

1.公告弹框可能出现的异常处理

huangxiaodong 1 vuosi sitten
vanhempi
commit
0e40132669

+ 5 - 0
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+otherDelegate.mm

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