Using NSUrlConnection in iOS

Quite often in my builds I need to get some information from an exposed webservice. Here’s an easy way of doing it with the iPhone API. In the interface declaration, add a NSMutableData for us to put the response data into: NSMutableData *responseData;NSMutableData *responseData; Then in the viewDidLoad, initialise it: responseData = [[NSMutableData alloc] init];responseData..

Read more