如果你不希望應用運行時 iPhone 進入鎖屏待機狀態(tài),加入下面代碼即可 [[UIApplication sharedApplication] setIdleTimerDisabled:YES];