Skip to content

Instantly share code, notes, and snippets.

@aarondufall
Created March 12, 2014 18:14
Show Gist options
  • Save aarondufall/9512886 to your computer and use it in GitHub Desktop.
Save aarondufall/9512886 to your computer and use it in GitHub Desktop.
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
if ([webView canGoBack]){
NSLog(@"Can Go back");
self.backButton.enabled = YES;
} else {
self.backButton.enabled = NO;
}
if ([webView canGoForward]) {
self.forwardButton.enabled = YES;
} else {
self.backButton.enabled = NO;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment