Graphics Programs Reference
In-Depth Information
Let's knock out the basic UI before focusing on web services. Create a new
NSObject
subclass and name it
ListViewController
. In
ListViewController.h
, change
the superclass to
UITableViewController
.
@interface ListViewController : NSObject
@interface ListViewController : UITableViewController
In
ListViewController.m
, write stubs for the required data source methods so that
we can build and run as we go through this exercise.
- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section
{
return 0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath