Ludovic
Ludovic

Reputation: 1

UIButton in UIWebView to previous/next article in my UITableViewController without back in her

I have two UIButton in my UIWebview and i want when i clicked on them previous/next article the WebView display the previous or next article without back in UITableView. But i don't know to do that.

It's a RSS feed application with a tableViewController witch store the articles of the feed and UIWebView witch display the content.

please help me :)

Upvotes: 0

Views: 1814

Answers (1)

Luis Ascorbe
Luis Ascorbe

Reputation: 2099

You can do this:

- (IBAction) webViewGoBack
{
    if ([webView canGoBack]) 
    {
        [webView goBack];
    }
}

- (IBAction) webViewGoForward
{
    if ([webView canGoForward]) 
    {
        [webView goForward];
    }
}

Upvotes: 5

Related Questions