views:

2279

answers:

1

I'm trying to load a uitableviewcontroller after a location is found. This also means after the viewdidload method. my class is extending a uitableview controller with this interface:

             @interface RootViewController : UITableViewController

{

in the implementation I try to do a reload of the table view with:

         [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 past some code of how to reload a table view with the above interface?

Thanks!

+6  A: 

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

catlan
wouldn't this only work if the uitableview was an outlet? the class above is a uitableviewcontroller.
Buffernet
It works because tableView is a property of UITableViewController. Outlets don't have anything to do with that, they are used to connect interface builder files with code.
catlan
it worked! Thanks a million!
Buffernet