首页 > 其他 > 详细

custom UITableViewCell selected Color

时间:2015-08-06 18:46:37      阅读:188      评论:0      收藏:0      [点我收藏+]

定制UITableView 中UITableViewCell点击颜色:


   self.selectionStyle  = UITableViewCellSelectionStyleDefault;

   UIView *selectedBackgroundView = [[UIView alloc] init]; 

   selectedBackgroundView.backgroundColor = [UIColor colorWithHexString:@"#efefef"];

   self.selectedBackgroundView = selectedBackgroundView;


特别注意此时selectionStyle的属性不能设置为:self.selectionStyle  = UITableViewCellSeparatorStyleNone



本文出自 “原石诞生璞玉” 博客,请务必保留此出处http://ymbian.blog.51cto.com/725073/1682246

custom UITableViewCell selected Color

原文:http://ymbian.blog.51cto.com/725073/1682246

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!