我是新来的iPad开发者,的UIWebView不滚动,直到底部
我想提出的ePub读者对我的应用程序,其中我加载在UIWebView
我的ePub格式的网页,当我在webview
载入我的网页它滚动直到只有一些限制,
这里是我的代码片段,
- (void)viewDidLoad {
...
_webview=[[UIWebView alloc]init];
_webview.frame=CGRectMake(0, 0, 770, 960);
[_webview setBackgroundColor:[UIColor grayColor]];
_webview.delegate=self;
[self.view addSubview:_webview];
[self loadPage];
...
}
- (void)loadPage{
[_webview loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:_pagesPath]]];
[self._webview sizeToFit];
_webview.scalesPageToFit=TRUE;
_webview.scrollView.bounces = NO;
_webview.autoresizesSubviews = YES;
}
您在iOS 5中的工作雅4 – Deepesh
请尝试使用语言约定。你的代码几乎不可读。 – dasdom
我正在使用iOS 5 – Krunal