首页 > 代码库 > 阻止iOS设备锁屏

阻止iOS设备锁屏

Ios代码 [[UIApplication sharedApplication] setIdleTimerDisabled: YES]; 或者 [UIApplication sharedApplication].idleTimerDisabled = YES; [[UIApplication sharedApplication] setIdleTimerDisabled: YES];或者[UIApplication sharedApplication].idleTimerDisabled = YES;