我有一个 UITableViewController
但我在它上面展示了一个模态 Controller 。当模态 Controller 关闭时,我再次看到 UITableViewController
。此时我想重新加载UITableViewController
示例场景
UITableViewController
红蓝绿- 向模态 Controller 展示其中的文本字段。在文本字段中键入黄色,然后单击一个按钮。单击按钮时,模态 Controller 被关闭,
UITableViewController
重新出现 - 重新加载
UITableViewController
以显示红蓝绿黄
这可能吗?
最佳答案
那应该 super 简单:
// assuming this is somewhere in your UITableViewController implementation:
[self.tableView reloadData];
我假设如果下面的链接是准确的,则 RubyMotion API 中存在完全相同的方法名称:
http://www.rubymotion.com/developer-center/api/UITableView.html#reloadData-instance_method
额外的 S.O.已经有一个非常相似的帖子,用于仅重新加载 TableView 的某些部分:
关于ios - 有没有办法使用 RubyMotion 在 UITableViewController 中重新加载数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22520630/