国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Objective-c - How to turn off automatic lock screen in iOS
世界只因有你
世界只因有你 2017-05-02 09:24:01
0
2
956

[UIApplication sharedApplication].idleTimerDisabled = YES. After setting it, the screen will still lock after a period of time. What's going on?

世界只因有你
世界只因有你

reply all(2)
淡淡煙草味

Put settings idleTimerDisabled的代碼放到AppDelegate里的applicationDidBecomeActivein

- (void)applicationDidEnterBackground:(UIApplication *)application {
    [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
}
滿天的星座

Logically speaking, after you set idleTimerDisabled to YES, the screen should not be automatically locked in the current app. Where did you set it up? Can you give me a more detailed code?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template