UIWebview's Forward Backward Problem
<pre><code>I used the following code to Webview navigation.
</code></pre>

<p>The following code works well some URLS, but it doesnt work  some URL.. I dont know what i did mistake in my code...</p>

<p>.h</p>

<pre><code>#import &lt;UIKit/UIKit.h&gt;

@interface WebviewViewController : UIViewController &lt;UIWebViewDelegate&gt;
{
    IBOutlet UIWebView * webview;
    IBOutlet UIToolbar * tBar;
    IBOutlet UIBarButtonItem * backbtn;
    IBOutlet UIBarButtonItem * forwardbtn;
}
@property (nonatomic, retain) IBOutlet UIWebView * webview;
@property (nonatomic, retain) IBOutlet UIBarButtonItem * backbtn;
@property (nonatomic, retain) IBOutlet UIBarButtonItem * forwardbtn;
@property (nonatomic, retain) UIToolbar * tBar;
- (IBAction)goBackbttn:(id)sender;
- (IBAction)goForwardbttn:(id)sender;
@end
</code></pre>

<p>.m</p>

<pre><code>#import "WebviewViewController.h"
@implementation WebviewViewController
@synthesize webview;
@synthesize tBar, backbtn, forwardbtn;
- (void)viewDidLoad {
    [super viewDidLoad];
    [backbtn setEnabled : FALSE];
    [forwardbtn setEnabled : FALSE];
    NSString * urlAddress = @ "http://www.abc.com";
    NSURL * url = [NSURL URLWithString:urlAddress];
    NSURLRequest * requestObj = [NSURLRequest requestWithURL:url];
    webview.scalesPageToFit = YES;
    webview.autoresizesSubviews = YES;
    [webview loadRequest : requestObj];
}

- (IBAction)goBackbttn:(id)sender
{
    [forwardbtn setEnabled : TRUE];
}

- (IBAction)goForwardbttn:(id)sender {
    [webview goForward];
}

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
    [backbtn setEnabled :[webView canGoBack]];
    [forwardbtn setEnabled :[webView canGoForward]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (void)viewDidUnload {
}

- (void)dealloc {
    [super dealloc];
}
@end
</code></pre>

<p>If anybody solve this issue please help me.</p>

<p>Thanks.</p>
