【发布时间】:2013-03-23 13:03:35
【问题描述】:
如何重新加载表格的特定部分?
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:indexPath.section] withRowAnimation:UITableViewRowAnimationFade]
我怎样才能用 ruby 的语法写出这样的东西?
【问题讨论】:
标签: ios objective-c rubymotion
如何重新加载表格的特定部分?
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:indexPath.section] withRowAnimation:UITableViewRowAnimationFade]
我怎样才能用 ruby 的语法写出这样的东西?
【问题讨论】:
标签: ios objective-c rubymotion
这里是 RubyMotion 语法:
sections = NSIndexSet.indexSetWithIndex(indexPath.section)
self.tableView.reloadSections sections, withRowAnimation:UITableViewRowAnimationFade
【讨论】: