UITabBarController in StoryBoard and customize UITableViewCell

http://www.cnblogs.com/buro79xxd/archive/2012/03/09/2387735.html

 

  • - (UITableViewCell *)tableView:(UITableView *)tableView 
  •   cellForRowAtIndexPath:(NSIndexPath *)indexPath 
  •     UITableViewCell *cell = [tableView 
  •       dequeueReusableCellWithIdentifier:@"PlayerCell"]; 
  •     Player *player = [self.players objectAtIndex:indexPath.row]; 
  •     UILabel *nameLabel = (UILabel *)[cell viewWithTag:100]; 
  •     nameLabel.text = player.name; 
  •     UILabel *gameLabel = (UILabel *)[cell viewWithTag:101]; 
  •     gameLabel.text = player.name; 
  •     UIImageView * ratingImageView = (UIImageView *) 
  •       [cell viewWithTag:102]; 
  •     ratingImageView.image = [self imageForRating:player.rating]; 
  •     return cell; 
  • Details: http://iaiai.iteye.com/blog/1493956/
posted @ 2013-12-05 14:47  sanbaodou  阅读(48)  评论(0)    收藏  举报