热点连接优化

This commit is contained in:
kai60
2022-03-27 22:08:21 +08:00
parent 9a5fe717a2
commit 90bcb3e43a
6 changed files with 62 additions and 26 deletions
+2 -2
View File
@@ -558,7 +558,7 @@ if (kScreenSize.height>480) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
NSLog(@"外部打断");
[[Socketsingleton sharedInstance] cutOffSocket];//外部应用打断时断开soket 如电话 下拉系统通知栏 上拉系统通知栏短信查看等
// [[Socketsingleton sharedInstance] cutOffSocket];//外部应用打断时断开soket 如电话 下拉系统通知栏 上拉系统通知栏短信查看等
//摄像头后台模式不能截图
self.isGoBack = YES;
// [GWNetSingleton sharedClient]
@@ -609,7 +609,7 @@ if (kScreenSize.height>480) {
- (void)applicationWillEnterForeground:(UIApplication *)application {
[[Socketsingleton sharedInstance] socketConnectHost];
// [[Socketsingleton sharedInstance] socketConnectHost];
self.isGoBack = NO;