iOS 在cell外部获取cell选中的row

    UIView *v = [textView superview];//获取父类view

    UIView *v1 = [v superview];

    JWTYLIncomeInformationCell *cell = (JWTYLIncomeInformationCell *)[v1 superview];//获取cell

    NSIndexPath *indexPathAll = [self.tableView indexPathForCell:cell];

    NSLog(@"indexPath:--------%ld",(long)indexPathAll.row);

posted @ 2017-03-22 13:52  tongyuling  阅读(1088)  评论(0编辑  收藏  举报