Skip to content

Instantly share code, notes, and snippets.

@vikhyat
Forked from anonymous/gist:4433857
Last active December 10, 2015 12:28
Show Gist options
  • Save vikhyat/4433910 to your computer and use it in GitHub Desktop.
Save vikhyat/4433910 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)
tableView.dequeueReusableCellWithIdentifier('test') ||
UITableViewCell.alloc.initWithStyle(UITableViewCellStyleDefault, reuseIdentifier:'test')
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