You can do a custom protocol bridge between the web page and your app as the following :
In you HTML page , you may add the following a
tag for example :
<a href='ToThePage2'>Click Here</a>
And in your app you'll handle this event by the following code :
webView.delegate = self;
- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
NSURL *url = request.URL;
NSString *urlString = url.absoluteString;
if([urlString isEqualToString:@"ToThePage2"])
{
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"theNextHTMLPage" ofType:@"html"]isDirectory:NO]]];
return NO;
}
return YES;
}