我遇到了 UIScrollView 的问题
我想在用户点击特定点时缩放滚动视图,并防止用户使用捏缩放手势放大/缩小,我该怎么做?
[imgScroll setDelegate:self];
float minimumScale = [imgScroll frame].size.height / [imageView frame].size.height;
[imgScroll setMinimumZoomScale:minimumScale];
[imgScroll setZoomScale:minimumScale];
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
return [imageView viewWithTag:ZOOM_VIEW_TAG];}
- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale {
[scrollView setZoomScale:scale+0.01 animated:NO];
[scrollView setZoomScale:scale animated:NO];}
提前谢谢。