[UIApplication sharedApplication].idleTimerDisabled = YES; //not let iphone go to sleep 这个设置是设置应用运行状态时禁止屏幕进入睡眠状态