Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须在 iPad 上下载一个非常大的文件。(iOS5、iOS6)
为了防止 iPad 屏幕进入睡眠状态,我使用:
[UIApplication sharedApplication].idleTimerDisabled = YES;
但它不起作用。
有人能帮我吗?
尝试做:
[UIApplication sharedApplication].idleTimerDisabled = NO; [UIApplication sharedApplication].idleTimerDisabled = YES;
有关更多信息,请参阅此答案。