Skip to content

Instantly share code, notes, and snippets.

@curtisforrester
Created May 11, 2016 14:29
Show Gist options
  • Save curtisforrester/a78cd958a1414a2561682eb75de01a75 to your computer and use it in GitHub Desktop.
Save curtisforrester/a78cd958a1414a2561682eb75de01a75 to your computer and use it in GitHub Desktop.
private func bindDataToView(array: ObservableArray<BudgetTag>)
{
self.bindDisposable = array.lift().bindTo(self.tableView, proxyDataSource: self) { indexPath, dataSource, tableView in
let cell = tableView.dequeueReusableCellWithIdentifier("tag_list_item", forIndexPath: indexPath)
let itemData = dataSource[indexPath.section][indexPath.row]
cell.textLabel?.text = itemData.tag
cell.detailTextLabel?.text = itemData.tag_description
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment