Monday, June 3, 2013

UIWebView goForward example in Objective C (iOS).


UIWebView goForward

Loads the next location in the back-forward list.

- (void)goForward

UIWebView goForward example.
-(IBAction) back
{

   [myWebView goBack];
}
-(IBAction) forward
{

   [myWebView goForward];
}

Example of [UIWebView goForward].
- (void)webViewDidStartLoad:(UIWebView*)webView
{
    [_backButton setEnabled:(webView.canGoBack)];
    [_forwardButton setEnabled:(webView.canGoForward)];
}

UIWebView goForward example.
- (IBAction)goBack {
    [signUpWebView goBack];
}

- (IBAction)goForward {
    [signUpWebView goForward];
}

- (void)webViewDidStartLoad:(UIWebView *)mwebView {
    backButton.enabled = (webView.canGoBack);
    forwardButton.enabled = (webView.canGoForward);
}

- (void)webViewDidFinishLoad:(UIWebView *)webView {
    backButton.enabled = (webView.canGoBack);
    forwardButton.enabled = (webView.canGoForward);
}

End of UIWebView goForward example article.