您的位置:首页 > 产品设计 > UI/UE

UITableView 取得点击的cell

2016-03-23 14:16 381 查看
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];

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: