2 things, the first will not affect the build.
Code:
@interface TableViewExampleViewController : UIViewController <UITableViewDataSource> {
}
should include the UITableViewDelegate protocol as well
Code:
@interface TableViewExampleViewController : UIViewController <UITableViewDataSource, UITableViewDelegate> {
}
You probably noticed that you had 3 warnings in you project when you build. These need to be eliminated. Delegate methods are tricky because minor typos can create major headaches. See the difference between these? The first is what you had - and is incorrect
Code:
-(NSInteger)tableview:(UITableView *) tableview
numberOfRowsInSection:(NSInteger) section {
return[listOfMovies count];
}
this is correct
Code:
-(NSInteger)tableView:(UITableView *) tableview
numberOfRowsInSection:(NSInteger) section {
return[listOfMovies count];
}
A missing capital V is the source of your problem. The method signatures must be exact or nothing gets called. Code completion rarely completes protocol methods. The variable names are irrelevant but everything else has to be exact. Many people recommend copy and pasting delegate methods from the documentation to avoid these types of errors.
Bob