1,自定义tableViewCell时,
_scrollView = [[UIScrollView alloc] initWithFrame:self.bounds];
[self.contentView addSubview:_scrollView]; //子视图应添加在contentView上
//要想点击cell中的图片,需要添加点击手势识别
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didTap:)];
[_scrollView addGestureRecognizer:tap];