-
-
Save dpfannenstiel/36fd45bcac3f1d03b7c7 to your computer and use it in GitHub Desktop.
UITableViewDataSource Stub
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 - UITableViewDataSource | |
#pragma mark Configuring a Table View | |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
NSString *cellIdentifier = @"CellIdentifier"; | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier forIndexPath:indexPath]; | |
return cell; | |
} | |
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { | |
return 1; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { | |
#warning This method needs to return values or nothing with load | |
return 0; | |
} | |
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { | |
return nil; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index { | |
return 0; | |
} | |
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { | |
return nil; | |
} | |
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section { | |
return nil; | |
} | |
#pragma mark Inserting or Deleting Table Rows | |
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { | |
} | |
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { | |
return NO; | |
} | |
#pragma mark Reordering Table Rows | |
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { | |
return NO; | |
} | |
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment