O'Reilly logo

RestKit for iOS by Taras Kalapun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Background processing

Sometimes we need to download large amount of data, or process a long operation. However, when the user clicks on the Home button on his iOS device, the iOS operating system will move the application from the active state to the inactive state. This can also occur for certain types of temporary interruptions, such as an incoming phone call or an SMS. The OS will notice the AppDelegate application's applicationWillResignActive: method before it begins to transition the application to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.

AFURLConnectionOperation and its subclasses have the pause method, which will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required