I am writing an application that downloads a lot of JSON data from the Internet. My application should parse the JSON data and then return the received objects to a makeshift delegate.
Now I was wondering if I could better use NSURLConnection or a combination of Grand Central Dispatch dispatch_asyncwith initWithContentsOfURL:(using GCD to prevent freezing).
Using Grand Central Dispatch is easier , especially because I do not need delegates, NSMutableData and all other variables that are used temporarily. But, of course, everyone who has a pro has its drawbacks.
What are the benefits of NSURLConnection over initWithContentsOfURLwith GCD?
user142019
source
share