2012-01-28 59 views
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提前。

回答

1

我在'UIScrollView中禁用了缩放属性,在Interface Builder的触摸部分下检查了所有属性。