问题
How can I reload specific section of a table?
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:indexPath.section] withRowAnimation:UITableViewRowAnimationFade]
How can I write something like this in ruby's syntax?
回答1:
Here it is in RubyMotion syntax:
sections = NSIndexSet.indexSetWithIndex(indexPath.section)
self.tableView.reloadSections sections, withRowAnimation:UITableViewRowAnimationFade
来源:https://stackoverflow.com/questions/15587095/rubymotion-reload-sections-of-uitableview