gesture的view指向 了button,而button本身 就是一个 view,
//删除图片
-(void)deletePic:(id)sender
{
UITapGestureRecognizer *gesture = (UITapGestureRecognizer *)sender;
UIView *gestureView =gesture.view;
[self.albumCellDelegate deletePic:gestureView.tag];
}
//删除图片
-(void)deletePic:(id)sender
{
UITapGestureRecognizer *gesture = (UITapGestureRecognizer *)sender;
UIView *gestureView =gesture.view;
[self.albumCellDelegate deletePic:gestureView.tag];
}