Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reload UITableViewController

I'm trying to reload data in a UITableViewController after a location is found. This also means after the viewDidLoad method. My class is extending a UITableViewController with this interface:

@interface RootViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource, CLLocationManagerDelegate>

in the implementation I try to reload data using

[self.view reloadData];

reloadData doesn't seem to be a method of UITableViewController or the view because I get an error:

Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments

Can someone please post some code of how to reload a table view extended like in my case?

like image 867
Atma Avatar asked Apr 02 '09 16:04

Atma


1 Answers

you have to do it on the UITableView over [self.tableView reloadData];

like image 124
catlan Avatar answered Oct 02 '22 22:10

catlan