1
却困与UIScrollView的的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];}
thx提前。