Forked from scottmkroberts/UITableViewDataSorceAndDelegate.m
Created
May 22, 2017 09:00
-
-
Save minyoad/1035d3b12805c50d7fd229ad56e299b5 to your computer and use it in GitHub Desktop.
UITableView Snippet
This file contains 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 - Table View Data Source | |
- (NSInteger)tableView:(UITableView *)tableView | |
numberOfRowsInSection:(NSInteger)section | |
{ | |
return 0; | |
} | |
- (UITableViewCell *)tableView:(UITableView *)tableView | |
cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
static NSString *CellIdentifier = @"Cell"; | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; | |
if (cell == nil) | |
{ | |
cell = [[UITableViewCell alloc] | |
initWithStyle:UITableViewCellStyleDefault | |
reuseIdentifier:CellIdentifier]; | |
} | |
return cell; | |
} | |
#pragma mark - Table View Delegate | |
- (void)tableView:(UITableView *)tableView | |
didSelectRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment