if(application.applicationState == UIApplicationStateActive) { NSLog(@"前台"); } if (application.applicationState == UIApplicationStateBackground) { NSLog(@"后台"); } if (application.applicationState == UIApplicationStateInactive) { NSLog(@"houtai"); }
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-08-27 22:34:06