The applicationDidBecomeActive
method is called on the main thread like all UIKit methods. You must always make sure that you perform any long running processes or networking access in a background thread.
Use the asynchronous form of NSURLConnection
or use GCD to perform the action on a background queue.