I have made an iphone fitness application. The issue i am unable to resolve here is that, while the application is running, the iphone goes in the sleep mode, and hence the accelerometer and sound turns off. Which i dont want to happen.
Is there anyway i can avoid this from happening? If not that, atleast i could increase the time of my iphone to go into sleep mode.
Regards Zeeshan
Try this
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];