CKSelectedTableViewCellFactory 1.1.0

CKSelectedTableViewCellFactory 1.1.0

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最后发布2014 年 12 月

Cody Kimberling 维护。



  • Cody Kimberling

这个库适用于 iPhone UITableView 的两种样式(普通分组和分组)

在您的 AppDelegate 类中导入此文件

#import "CKSelectedTableViewCellFactory.h"

并设置选中背景颜色和圆角半径,默认值是 [UIColor lightGrayColor] 和 5.0

CKSelectedTableViewCellFactory.sharedInstance.backgroundColor = UIColor.redColor;

CKSelectedTableViewCellFactory.sharedInstance.cornerRadius = 5.0;

在 UITableView 中使用

cell.selectedBackgroundView = [CKSelectedTableViewCellFactory.sharedInstance selectedBackgroundViewForTableViewCell:cell inTableView:tableView atIndexPath:indexPath];