I am writing a music player that I am trying to allow to enter sleep mode. The problem is that ui is updated every second, and I think this is preventing the phone from sleeping. I added this line:
[UIApplication sharedApplication].idleTimerDisabled = NO;
and he did nothing. I saw other applications that go into sleep mode, even if ui is updated. How can i do this?
coder source
share