Created
October 2, 2009 19:53
-
-
Save subdigital/200049 to your computer and use it in GitHub Desktop.
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
// Customize the appearance of table view cells. | |
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
static NSString *CellIdentifier = @"Cell"; | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; | |
if (cell == nil) { | |
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; | |
cell.opaque = NO; | |
cell.textLabel.backgroundColor = [UIColor clearColor]; | |
cell.backgroundColor = [UIColor colorWithRed:.1 green:.1 blue:.1 alpha:.4]; | |
cell.textColor = [UIColor whiteColor]; | |
} | |
cell.imageView.image = [icons objectAtIndex:indexPath.row]; | |
cell.textLabel.text = [items objectAtIndex:indexPath.row]; | |
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; | |
return cell; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment