Created
January 2, 2013 11:09
-
-
Save anonymous/4433857 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 AgendaTableViewController < UITableViewController | |
def tableView(tableView, numberOfRowsInSection:section) | |
return 10 | |
end | |
def tableView(tableView, cellForRowAtIndexPath:indexPath) | |
cell = tableView.dequeueReusableCellWithIdentifier('test') | |
cell = UITableViewCell.alloc.initWithStyle(UITableViewCellStyleDefault, reuseIdentifier:'test') if !cell | |
return cell | |
end | |
def tableView(tableView, willDisplayCell:cell, forRowAtIndexPath:indexPath) | |
cell.textLabel.text = 'Test' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment