I'm developing an app which displays a PDF embedded in a WebView this is my code:
- (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];
}
Now I want to touch a button and change my loaded PDF to certain page, I'm looking for something to achieve this but still got nothing working
thanks in advance for the support