【问题标题】:RubyMotion reload sections of UITableViewRubyMotion 重新加载 UITableView 的部分
【发布时间】:2013-03-23 13:03:35
【问题描述】:

如何重新加载表格的特定部分?

[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:indexPath.section] withRowAnimation:UITableViewRowAnimationFade]

我怎样才能用 ruby​​ 的语法写出这样的东西?

【问题讨论】:

    标签: ios objective-c rubymotion


    【解决方案1】:

    这里是 RubyMotion 语法:

    sections = NSIndexSet.indexSetWithIndex(indexPath.section)
    self.tableView.reloadSections sections, withRowAnimation:UITableViewRowAnimationFade
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-08
      相关资源
      最近更新 更多