xamenrax
xamenrax

Reputation: 1744

RubyMotion reload sections of UITableView

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

Answers (1)

Jamon Holmgren
Jamon Holmgren

Reputation: 24394

Here it is in RubyMotion syntax:

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

Upvotes: 3

Related Questions