Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2013 11:09
Show Gist options
  • Save anonymous/4433857 to your computer and use it in GitHub Desktop.
Save anonymous/4433857 to your computer and use it in GitHub Desktop.
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