IOS7 cell.selectionStyle = UITableViewCellSelectionStyleBlue 不起作用怎么办,选中后背景是浅灰色的。
来源:互联网 发布:马塔潘角海战知乎 编辑:程序博客网 时间:2024/04/29 17:53
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell==nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier];
}
UIView *bgColorView = [[UIView alloc] init];
bgColorView.backgroundColor = [UIColor blueColor];
bgColorView.layer.masksToBounds = YES;
cell.selectedBackgroundView = bgColorView;
return cell;
}
0 0
- IOS7 cell.selectionStyle = UITableViewCellSelectionStyleBlue 不起作用怎么办,选中后背景是浅灰色的。
- UITableViewcell选中后怎么去掉背景灰色
- UITableViewcell选中后去掉背景灰色
- IOS7 UITableViewCellSelectionStyleBlue设置无效的替代方案。
- 更改cell选中的背景
- 中文选项是灰色的怎么办
- cell被选中时的背景颜色
- 更改cell选中后的颜色
- 更改cell选中后的颜色
- 点击选中cell后改变cell的样式
- 修改IP地址的地方是灰色的,怎么办?
- Cell选中时自定义背景
- ios 设置UITableView 选中行cell的背景颜色(自定义选中的背景颜色)
- 用图作背景的cell选中时背景图变暗
- eclipse 新建servers时选中tomcat版本后不能继续操作,next是灰色.
- 选中cell后不变颜色
- 自定义cell背景和选中时颜色
- 去掉cell选中背景颜色 - 芒果iOS
- 数据结构6-关于“树”的生成与操作的实例
- 数据同步之各站点同步表触发器创建
- jQuery:提交表单前判断表单是否被修改过
- php-5.5.17 centos7
- LeetCode 方法详解
- IOS7 cell.selectionStyle = UITableViewCellSelectionStyleBlue 不起作用怎么办,选中后背景是浅灰色的。
- extern和static修饰全局变量的区别
- jquery选择器空格与大于号、加号与波浪号的区别
- C++结构体字节对齐
- Android 消息推送
- 清除 thinkphp跟php的 X-Powered-By
- Android4.4电池管理
- Android listview动态添加删除更新带ProgressBar的Item
- js实现二级联动,并且可以设置任意初始省、市