iOS TableView didSelectRowAtIndexPath选中某Cell后获取其Cell实例对象

来源:互联网 发布:手机音频编辑软件中文 编辑:程序博客网 时间:2024/05/22 07:49
该方法的传入参数是“NSIndexPath”类型,如何获得对应的Cell对象吗,方法如下:
  1. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{  
  2.          UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

0 0
原创粉丝点击