重新加载UITableViewController [英] Reload UITableViewController
问题描述
我正在尝试在找到位置后在 UITableViewController
中重新加载数据。这也意味着在 viewDidLoad
方法之后。我的类使用此接口扩展 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
似乎不是UITableViewController或视图的方法因为我收到错误:
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?
推荐答案
你必须在 UITableView $ c上执行此操作$ c> over
[self.tableView reloadData];
you have to do it on the UITableView
over [self.tableView reloadData];
这篇关于重新加载UITableViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!