标签: iphone cocoa-touch uikit
我如何确保iPhone不会禁用屏幕或进入睡眠状态约20至30分钟?
答案 0 :(得分:4)
点击此链接:Keep iphone active while running program
简而言之:
[UIApplication sharedApplication].idleTimerDisabled = YES;