문제

I have a UIWebView that shows some text, I want to disable zoom/unzoom but I want to detect when users tap on a link. I have tried with disabling MultiTouch but zoom is still working.

도움이 되었습니까?

해결책

Setting the minimumZoomScale and maximumZoomScale on your webview's UIScrollView to be 1.0 should prevent the webview from zooming.

webview.scrollView.maximumZoomScale = 1.0;
webview.scrollView.minimumZoomScale = 1.0;

다른 팁

Try this

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView 
{
  return nil;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top