Pārlūkot izejas kodu

1.添加闪退日志

huangxiaodong 1 gadu atpakaļ
vecāks
revīzija
6a720b7a6b

+ 6 - 6
创维盒子/双子星云手机/AppDelegate/AppDelegate.m

@@ -46,12 +46,12 @@
     
     //保护App,一般常见的问题不会导致闪退,增强App的健壮性,同时会将错误抛出来,根据每个App自身的日志渠道记录
 
-//    [JJException configExceptionCategory:JJExceptionGuardAll];
-//    [JJException startGuardException];
-//    [JJException registerExceptionHandle:self];
-//    
-//    //Default value:NO  no表示异常不退出 YES 表示退出  开发时应该设置为YES
-//    JJException.exceptionWhenTerminate = YES;
+    [JJException configExceptionCategory:JJExceptionGuardAll];
+    [JJException startGuardException];
+    [JJException registerExceptionHandle:self];
+    
+    //Default value:NO  no表示异常不退出 YES 表示退出  开发时应该设置为YES
+    JJException.exceptionWhenTerminate = YES;
 
     
     //test code

+ 6 - 6
创维盒子/双子星云手机/Class/Set/previewFile/view/imageCollectionViewCell.m

@@ -146,12 +146,12 @@
     fileUrl = [fileUrl  stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
     
     [_imageView sd_setImageWithURL:[NSURL URLWithString:fileUrl] placeholderImage:defaultImage completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
-        if(image){
-            //HLog(@"11图片1:%@",imageURL.absoluteString);
-        }
-        else{
-            //HLog(@"11图片0:%@",imageURL.absoluteString);
-        }
+//        if(image){
+//            HLog(@"11图片1:%@",imageURL.absoluteString);
+//        }
+//        else{
+//            HLog(@"11图片0:%@",imageURL.absoluteString);
+//        }
         
     }];