UIWebView中的UIButton到我的UITableViewController中的上一篇/下一篇文章,而不是她的回复

0 objective-c uibutton uiwebview uitableview

我的UIWebview中有两个UIButton,我希望当我点击上一篇/下一篇文章时,WebView会在UITableView中显示上一篇或下一篇文章.但我不知道这样做.

这是一个带有tableViewController的RSS feed应用程序,它存储了feed和UIWebView的文章,显示内容.

请帮我 :)

Lui*_*rbe 5

你可以这样做:

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

- (IBAction) webViewGoForward
{
    if ([webView canGoForward]) 
    {
        [webView goForward];
    }
}
Run Code Online (Sandbox Code Playgroud)