I’ve been trying to reload my UITableView but to no avail. The code for my viewWillAppear looks like this:
-(void)viewWillAppear:(BOOL)animated {
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refresh)] autorelease];
[super viewWillAppear:animated];
[self.tableView reloadData];
}
The code for my refresh method:
-(void)refresh{
NSLog(@"refreshing UITableView!");
[self.tableView reloadData];
}
Any help is very much appreciated!
Found it, to get an updated list, it was necessary to call the viewdidLoad method again, in addition to the self.tableView reloaddata.