博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

再UITableViewCell添加如下方法

- (void)changeSelectedColor
{
    self.contentView.backgroundColor = [UIColor lightGrayColor];
    
    self.bgView.backgroundColor = UIColorWithRGB(0xf3, 0xf3, 0xf3);
    
    UIView *backView = [[UIView alloc] initWithFrame:self.frame];
    self.selectedBackgroundView = backView;
    self.selectedBackgroundView.backgroundColor = [UIColor grayColor];
    [backView release];
}

 

posted on 2013-05-08 15:10  Likwo  阅读(1248)  评论(0编辑  收藏  举报