Created
May 11, 2016 14:29
-
-
Save curtisforrester/a78cd958a1414a2561682eb75de01a75 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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