1.设置scrollview的代理 2.实现如下方法 -(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView{ return self.imageview; } 3.设置scrollview放大缩小的最大最小值 scroll.maximumZoomScale=2.0; scroll.minimumZoomScale=0.5;