Iphone 重新加载UITableViewController
我试图在找到位置后在Iphone 重新加载UITableViewController,iphone,uitableview,Iphone,Uitableview,我试图在找到位置后在UITableViewController中重新加载数据。这也意味着在viewDidLoad方法之后。我的类正在使用此接口扩展一个UITableViewController: @interface RootViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource, CLLocationManagerDelegate> reloadData似乎不是UITab
UITableViewController
中重新加载数据。这也意味着在viewDidLoad
方法之后。我的类正在使用此接口扩展一个UITableViewController
:
@interface RootViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource, CLLocationManagerDelegate>
reloadData
似乎不是UITableViewController或视图的方法,因为我收到一个错误:
Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments
有人可以发布一些关于如何重新加载像我这样扩展的表视图的代码吗?您必须在
UITableView
over[self.tableView reloadData]代码>只有当uitableview是一个出口时,这难道不起作用吗?上面的类是uitableviewcontroller。它之所以有效,是因为tableView是uitableviewcontroller的属性。插座与此无关,它们用于将界面生成器文件与代码连接起来。如果它起作用,您可能应该接受这一点作为问题的答案。
Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments