Reputation: 1744
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?
Upvotes: 0
Views: 489
Reputation: 24394
Here it is in RubyMotion syntax:
sections = NSIndexSet.indexSetWithIndex(indexPath.section)
self.tableView.reloadSections sections, withRowAnimation:UITableViewRowAnimationFade
Upvotes: 3