只需在
-(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{}中修改
cell.selectedBackgroundView = [[[UIView alloc] initWithFrame:cell.frame] autorelease];
cell.selectedBackgroundView.backgroundColor = [UIColor redColor];
即可
本文深入浅出地介绍了使用Swift语言进行iOS应用开发的基本概念、语法及实战技巧,帮助开发者快速掌握iOS应用开发的核心技能。
1651

被折叠的 条评论
为什么被折叠?



