转自:http://www.cocoachina.com/iphonedev/sdk/2010/1028/2260.html

如果你不希望应用运行时 iPhone 进入锁屏待机状态,加入下面这行代码即可

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

05-02 11:54