20

我正在尝试在UITableViewController找到位置后重新加载数据。这也意味着在viewDidLoad方法之后。UITableViewController我的班级正在使用此接口扩展 a :

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

在实现中,我尝试使用重新加载数据

[self.view reloadData];

reloadData似乎不是 UITableViewController 或视图的方法,因为我收到错误:

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

有人可以发布一些如何重新加载扩展的表格视图的代码吗?

4

1 回答 1

54

你必须UITableView从头再来[self.tableView reloadData];

于 2009-04-02T18:27:33.980 回答