2010-10-29 147 views

回答

9
[[UIApplication sharedApplication] setIdleTimerDisabled:YES] 
+0

當我的應用程序運行時,這隻會影響iPad嗎?我是否需要在退出應用程序時更改此設置? – Moshe 2010-10-31 03:09:07

2

您想要UIApplication.idleTimerDisabled屬性。

+0

謝謝,看到我對'igul222'的回答。 – Moshe 2010-10-31 03:09:53

+2

它只在您的應用運行時影響iPad。 – 2010-10-31 06:13:51

相關問題