Hi guys,
I have a UIWebView on my interface and I have added a UIToolbar with a next button and previous button. When I press the next button, I want the WebView to load a different HTML page. BUT I also want to run an if statement to determine which HTML page the WebView currently has in it.
So For example.
If the UIWebView has index.html loaded in it, when the user presses the next button I want it to load about.html.
If the UIWebView has about.html loaded in it, when the user presses the next button I want it to load contact.html. etc.
Here is the way I am setting the WebView:
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"PrepareEquipment" ofType:@"html"]isDirectory:NO]]];
Thanks guys!
Stefan.