We use the example code from Eventful and the Last.fm example. However, this time we do not use XML; instead, we use JSON along with the new
NSJSONSerialization class in iOS 5. The
NSJSONSerialization class is useful to convert JSON-to-Core Foundation objects and Core Foundation objects to JSON. In simpler words, you can convert JSON retrieved from web services to
NSArray. NSDictionary types easily and use in your application.
Hello_LocationViewController.xibfile and exposing an outlet, as in the Eventful example before.
NSURLConnection, we define an object of the type