To prevent your IOS app from going into sleeping mode using Objective-C you can use the snippet below.
Sample Objective-C
[UIApplication sharedApplication].idleTimerDisabled = YES; // Turn off [UIApplication sharedApplication].idleTimerDisabled = NO; // Turn on