Last active
January 10, 2016 20:26
-
-
Save RuiAAPeres/d49ec71b53873d9b43b6 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
| class TableDataSource: UITableViewDataSource { | |
| let viewModels: [ViewModel] | |
| init(viewModels: [ViewModel]) { | |
| self.viewModels = viewModels | |
| } | |
| func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { | |
| let identifier = ? | |
| let cell = tableView.dequeueReusableCellWithIdentifier(identifier, forIndexPath: indexPath) as! ChannelCell | |
| cell.viewModel = viewModel | |
| return cell | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment