gpt4 book ai didi

iphone - 重新加载 UITableViewController

转载 作者:行者123 更新时间:2023-12-03 18:20:06 27 4
gpt4 key购买 nike

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

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

在实现中我尝试使用

重新加载数据
[self.view reloadData];

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

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

有人可以发布一些代码,说明如何像我的情况一样重新加载扩展的 TableView 吗?

最佳答案

您必须在 UITableView 上通过 [self.tableView reloadData];

关于iphone - 重新加载 UITableViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/710640/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com