ios 触摸事件

        blogImageView.userInteractionEnabled=YES;
        UITapGestureRecognizer * tag=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(zoomUp)];
        [blogImageView addGestureRecognizer:tag];
        
        
        -(void)zoomUp{

    NSLog(@"%@",@"被点击了");

}
相关文章
相关标签/搜索