I am looking to write a simple iPhone application to access some sort of data off the web. I was thinking something like the temperature in LA, the amount of snow in Vancouver etc. basically something that changes over time. Can anyone give me any pointers with regards to the current ways you can access variable remote data off the web for use within an application.
Should I be looking for online databases that I can query, some sort of feed, I am just not too sure how you go about this.
any examples or pointers would be much appreciated.
gary
You can try hit the URL and parse the webpage itself. I’d suggest reading up on NSURL* classes. The classes handle cookies, session state, etc and you can parse the NSData that comes out.
http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html
Below’s an example of hitting a URL and getting the response as a NSString: