I am a bit new to Xcode and iOS in general. I want to get data, specifically floating point data, from a url request and store it in an array. Example, I have the url:
If I enter that url in the browser, it shows up the text 'co=0.1124'. How can I grab this data (0.1124) into my program? This is what I wrote (below) but this is incorrect.
NSString *stringPollution = [NSString stringWithFormat:@"http://www.hazewatch.unsw.edu.au/get-data.php?latitudes=-33.91714104308085&longitudes=151.2331476539389&datetimes=2015-05-13%2003:27:52&pollutants=co"];
NSURL *urlPollution = [NSURL URLWithString:stringPollution];
NSData *pollutionData = [NSData dataWithContentsOfURL:urlPollution];
It seems like a simple task but I have no idea how to do it. Any help would be appreciated. Thanks!