Do you want to change the cells in the tableView? You can use one of the table delegate methods to return a custom cell. Make sure your object controlling the table conforms to the UITableViewDelegate and UITableViewDataSource protocols.
Here's the method that will return a tableViewCell initialized from a nib file. You can create the cell from an nib file or just with code in the method.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CustomCellIdentifier = @"CustomCellIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CustomCellIdentifier];
if (cell == nil) {
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomTableCell" owner:self options:nil];
if ([nib count] > 0) {
cell = self.customCell;
} else {
NSLog(@"Failed to load custom cell.");
}
}
return cell;
}
Let me know if you need any more help!
Sam