Explorar o código

1.去掉后台保活 尝试修复闪退第二次

huangxiaodong hai 1 ano
pai
achega
1692161de6
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      创维盒子/双子星云手机/AppDelegate/AppDelegate.m

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

@@ -85,12 +85,14 @@
     
     
     //启动后台保活
-    [AudioSessionObject shareManager];
+    //[AudioSessionObject shareManager];
     [self MonitorNetworkChangesFun];
     
+#ifdef DEBUG
     [[PLeakSniffer sharedInstance] installLeakSniffer];
-    
-    //[Bugly startWithAppId:@"179559a521"];
+#else
+    [Bugly startWithAppId:@"179559a521"];
+#endif
     
     
     [[UIDevice currentDevice] setBatteryMonitoringEnabled:YES];