UITableView 取得点击的cell

 NSInteger row = [_tableView indexPathForCell:cell].row;  // 取得点击的cell 

    SIFilmComment* filmComment = [_comments objectAtIndex:row]; // 赋值

    SIUser* user = [[filmComment comment] user];

    if(user)

    {

        LYRHomePageOtherUserViewController*userVC = [[LYRHomePageOtherUserViewController alloc]init];

        userVC.user = user;

        [self.navigationController pushViewController:userVC animated:YES];

    }

posted on 2016-03-23 14:16  哈利波特大  阅读(286)  评论(0编辑  收藏  举报