美文网首页
iOS开发之在didSelectRowAtIndexPath 里

iOS开发之在didSelectRowAtIndexPath 里

作者: 朱晓晓的技术博客 | 来源:发表于2019-01-23 16:03 被阅读8次
选中了tableview的cell的某一行

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

{

}

  

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

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

MyCustomCell *cell = (MyCustomCell *)[tableView cellForRowAtIndexPath:indexPath];

相关文章

网友评论

      本文标题:iOS开发之在didSelectRowAtIndexPath 里

      本文链接:https://www.haomeiwen.com/subject/exfsjqtx.html