我正在開發它顯示嵌入的WebView這一個PDF的應用程序是我的代碼:如何控制頁面顯示在UIWebView中加載的iOS PDF(轉到頁)
- (void)viewDidLoad
{
[super viewDidLoad];
NSURL *urlremoto = [NSURL URLWithString:@"https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/TransitionGuide.pdf"];
request = [NSURLRequest requestWithURL:urlremoto];
[self.webView loadRequest:request];
[self.webView setScalesPageToFit:YES];
}
-(void)webViewDidStartLoad:(UIWebView *)webView{
[self.activityIndicator startAnimating];
}
-(void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
//TODO: describir el error
[self.activityIndicator stopAnimating];
}
-(void)webViewDidFinishLoad:(UIWebView *)webView{
[self.activityIndicator stopAnimating];
}
現在我想輕觸按鈕改變我的加載PDF的某些頁面,我正在尋找的東西來實現這一點,但仍然沒有什麼工作
先感謝您的支持
可能重複[iPhone的UIWebView PDF頁面跳轉]的(HTTP://計算器.com/questions/1974304/iphone-uiwebview-pdf-page-jump) – bummi