[Objective-C] IOS应用中点击列表不出现蓝色高亮显示的代码 →→→→→进入此内容的聊天室

来自 , 2020-07-11, 写在 Objective-C, 查看 112 次.
URL http://www.code666.cn/view/0db2e204
  1. cell.selectionStyle = UITableViewCellSelectionStyleNone;
  2.  
  3. /*Further, make sure you either don't implement -tableView:didSelectRowAtIndexPath: in your table view delegate or explicitly exclude the cells you want to have no action if you do implement it.*/
  4. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  5. {
  6.     // A case was selected, so push into the CaseDetailViewController
  7.     UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
  8.     if (![cell selectionStyle] == UITableViewCellSelectionStyleNone) {
  9.         // Handle tap code here
  10.     }
  11. }
  12. //objectc/5247

回复 "IOS应用中点击列表不出现蓝色高亮显示的代码"

这儿你可以回复上面这条便签

captcha