zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

UITableViewcell选中后怎么去掉背景灰色详解手机开发

手机开发 详解 怎么 背景 去掉 选中 灰色
2023-06-13 09:20:12 时间
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 

 UITableViewCell * cell = [tableView cellForRowAtIndexPath:indexPath]; 

 cell.selectionStyle = UITableViewCellSelectionStyleNone; 

在这个函数里写上cell.selectionStyle = UITableViewCellSelectionStyleNone;就ok了

5219.html

app程序应用开发手机开发无线开发移动端开发