Skip to content

Instantly share code, notes, and snippets.

@colemancda
Created April 13, 2013 19:54
Show Gist options
  • Save colemancda/5379814 to your computer and use it in GitHub Desktop.
Save colemancda/5379814 to your computer and use it in GitHub Desktop.
UITableView Datasource - The two required methods to conform to UITableViewDataSource Protocol
#pragma mark - UITableView DataSource
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return <#Number of Rows#>
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
<#Table View Cell Class#> *cell = [tableView dequeueReusableCellWithIdentifier:<#Table View Cell Identifier#>];
// configure cell...
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment