iOS开发之在didSelectRowAtIndexPath 里

2019-01-23  本文已影响8人  朱晓晓的技术博客
选中了tableview的cell的某一行

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

}

  

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

如果你是自定义的话就用下面这种

MyCustomCell *cell = (MyCustomCell *)[tableView cellForRowAtIndexPath:indexPath];
上一篇 下一篇

猜你喜欢

热点阅读