1
我已经在web-view中加载了一个HTML页面,但是在web view上双击它没有缩放。我也将“scalesPageToFit”属性设置为“YES”,但是我无法看到缩放在网络视图中的作用。如何在iphone中实现webview中doubleclick的缩放?
CGRect webFrame = CGRectMake(0, 0, 320, 480);
webView = [[UIWebView alloc] initWithFrame:webFrame];
webView.backgroundColor = [UIColor clearColor];
webView.scalesPageToFit = YES;
webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
webView.delegate = self;
webView.multipleTouchEnabled = YES;
[self.view addSubview:webView];
[self loadWebView];
请帮我一下。谢谢。