UIApplicationState state = [[UIApplication sharedApplication] applicationState];
UIApplicationState有三个状态:
UIApplicationStateActive
UIApplicationStateInactive 这个状态是正常锁屏时,app响应的状体啊
UIApplicationStateBackground 这个状态试home键被按下的状态。
UIApplicationState有三个状态:
UIApplicationStateActive
UIApplicationStateInactive 这个状态是正常锁屏时,app响应的状体啊
UIApplicationStateBackground 这个状态试home键被按下的状态。