在didSelectRowAtIndexPath 裏面取cell的方法

選中了tableview的cell的某一行table

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

{di

}tableview

  

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];view

若是你是自定義的話就用下面這種vi

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

相關文章
相關標籤/搜索