iOS tableView 设置选中type样式
2016-08-30 10:03
471 查看
</pre><pre name="code" class="objc">可以给checkmark添加颜色、cell.tintColor = [UIColo redColor];
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (![indexPath isEqual:_lastIndex]) { UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; cell.accessoryType = UITableViewCellAccessoryCheckmark; UITableViewCell *lastCell = [tableView cellForRowAtIndexPath:_lastIndex]; lastCell.accessoryType = UITableViewCellAccessoryNone; _lastIndex = indexPath; } }
相关文章推荐
- IOS tableView 选中时的背景颜色设置
- iOS中设置tableview的选中时的文字颜色
- ios tableView设置cell选中颜色以及表格默认选中某行
- 关于tableView group样式 时设置 cell的width 宽度
- IOS开发之TableView以及TableViewCell背景设置
- iOS TableView didSelectRowAtIndexPath选中某Cell后获取其Cell实例对象
- iOS TableView didSelectRowAtIndexPath选中某Cell后获取其Cell实例对象
- iOS学习之分段Table View的使用(Grouped样式表格)
- 设置tableview返回时取消选中状态
- IOS TableView 数据列表与设置页面(个人)
- iOS TableView didSelectRowAtIndexPath选中某Cell后获取其Cell实例对象
- ios 让两个tableView同时处于选中状态
- iOS 关于tableView cell的分割线的一些设置
- iOS开发 自定义tableView样式(使用代码/使用Interface Builder)、分组显示、给TableView增加索引、给TableView增加SearchBariOS开发 自定义tab
- IOS-tableView 设置圆角
- iOS学习之分段Table View的使用(Grouped样式表格)
- iOS开发 自定义tableView样式(使用代码/使用Interface Builder)、分组显示、给TableView增加索引、给TableView增加SearchBar
- IOS开发之tableview只选中一行
- ios tableView那些事 (五) 给tableview设置缩进级别
- 关于tableView样式为UITableViewStyleGrouped间距的设置