Created
April 13, 2013 19:54
-
-
Save colemancda/5379814 to your computer and use it in GitHub Desktop.
UITableView Datasource - The two required methods to conform to UITableViewDataSource Protocol
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
#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