gpt4 book ai didi

ios - 是否可以在 for/in 循环中创建 UITableViewCells?

转载 作者:行者123 更新时间:2023-11-29 02:44:30 25 4
gpt4 key购买 nike

我正在调用一个函数,在该函数中检索带有需要在 tableviewCells 中显示的数据的 NSDictionary 。是否可以调用方法

 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

用另一种方法?

最佳答案

不可能在另一个方法中调用一个特定的方法。但是,您可以在任何方法中调用 [self.tableView reloadData]。这会调用所有 UITableView 委托(delegate)方法,其中包括 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

关于ios - 是否可以在 for/in 循环中创建 UITableViewCells?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25312841/

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