Baby小破孩

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
1.改变UITableViewCell选中时背景色

  1.  cell.selectedBackgroundView = [[[UIView alloc] initWithFrame:cell.frame] autorelease];
  2.  cell.selectedBackgroundView.backgroundColor = [UIColor xxxxxx];

2.自定义UITableViewCell选中时背景

  1. cell.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"cellart.png"]] autorelease]; 

还有字体颜色

  1.  cell.textLabel.highlightedTextColor = [UIColor xxxcolor];

 

posted on 2013-05-30 11:57  Baby小破孩  阅读(294)  评论(0编辑  收藏  举报