0

I created one cocos2d game. iPhone light is off as per its setting.

My question is :- Is that possible to set iPhone light is keep on while my game is on running mode.

Or its by default take iPhone setting.

iBhavin
  • 1,261
  • 15
  • 30

1 Answers1

2
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

This is not recommended as it will drain battery

shabbirv
  • 8,958
  • 4
  • 33
  • 34