Let's begin writing our app now. Using the Hello Location
application as the base of our project, we add a UITableView
, which will be used to show the nearby events.
1. Open the
Hello Location
project. In theHello_locationViewController.h
file, create aUITableView
variable that will be used to display a Table View in our app. We will also define a variable for connecting to the Eventful API URL viaNSURLConnection
. An XML Parser of the typeNSXMLParer
is created as well, and lastly, a variable to store the XML content retrieved from Eventful of the typeNSMutableData
is also created.2. We also need to use the
NSXMLParserDelegate
in our class definition to use the methods implemented by theNSXMLParser
. Create an outlet for theUITableView
and name itmyDataTable:
#import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface Hello_LocationViewController : UIViewController CLLocationManagerDelegate, UITableViewDataSource...