如何在另一个视图中从UITableViewCell图像中进行Segue? http://i.stack.imgur.com/4WOGx.png
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(imageTapped:)];
self.CommentAvatarImageView.userInteractionEnabled = YES;
[self.CommentAvatarImageView addGestureRecognizer:tap];
- (void )imageTapped:(UITapGestureRecognizer *) gestureRecognizer
{
NSLog(@"AVA Tapped");
}
答案 0 :(得分:0)
将您的单元格连接到您希望它在选中时转移到的视图。例如,如果您想要转换为" nextViewController",则ctrl从源表视图中相应的表视图单元格 - 单元格拖动到nextViewController。将故事板segue标识符更改为" nextView"。
然后在你的didSelectRowAtIndexPath
中[self performSegueWithIdentifier:@"nextView" sender:self];