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提前。