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];
}
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];
}
相关文章推荐
- UESTC - 1271 Search gold (DP)
- RequireJS禁止缓存
- 信号发送(sigqueue)和接收(sigaction)
- iOS开发UI篇—CAlayer(自定义layer)
- 关于UITableView — cell上点击按钮变换
- 演练:从头开始创建 MSBuild 项目文件
- NSNumber和NSValue
- MSDN中对MSBuild的解释页
- EasyUI前端框架控件案例
- 16其他UI内容
- 15.UIDynamic 物理引擎
- MSBuild入门
- 开发UI控件时遇到的问题(类似于苹果Assistive Touch)
- [转]MSBuild的简单介绍与使用
- ios的手势操作之UIGestureRecognizer浅析
- UIView上添加了一个按钮和一个单击手势的事件相应,互相不影响的处理方法。。
- juery给所有ID属性相同的div绑定一个事件
- request.getAttribute()与request.getParameter() 方法区别
- 关于UIImagePickerController 被dismiss 后 屏幕顶部弹出红条 的问题
- epoll 或者 kqueue 的原理是什么?