测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布 | 2014 年 12 月 |
由 Cody Kimberling 维护。
在您的 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];