ios 设置UITableView 选中行cell的背景颜色(自定义选中的背景颜色)

来源:互联网 发布:一直打电话的软件 编辑:程序博客网 时间:2024/05/08 17:11


- (void)tableView:(UITableView *)tableView didHighlightRowAtIndexPath:(NSIndexPath *)indexPath{    UITableViewCell* cell = (UITableViewCell*)[_sendGoodsTableView cellForRowAtIndexPath:indexPath];    cell.backgroundColor = redColor;}- (void)tableView:(UITableView *)tableView didUnhighlightRowAtIndexPath:(NSIndexPath *)indexPath{    UITableViewCell* cell = (UITableViewCell*)[_sendGoodsTableView cellForRowAtIndexPath:indexPath];    cell.backgroundColor = whiteColor;}


0 0
原创粉丝点击