我有一个 RSS 种子, 返回包含标题、 简短文本和完整大小文本的json 。 他短文本的标题和部分显示在表格View 中 。
I have 3 controllers with 3 views. View 1 displays a TableView containing articles from the json( the title and short text ), each article has a "Read more" button, in the IBAction of the button, i push a viewcontroller(2) into the navigation controller, the controller has a UIWebView(second View), which loads a html string. The string contains links, when the user taps a link, i want to present a modal view controller with another WebView(3), this time using the request(keep in mind that both WebViews have separate controllers and nibs). The delegates are set properly on both of them, i tried both from code and using visual tools. In the delegate method shouldStartLoadWithRequest in the first WebView i check to see if the request parameter contains "http" or "www", because only then i want to call the second WebView. The second WebView works well the first time, the view is presented modally fine, but when i dismiss it and tap the same link or another, the shouldStartLoadWithRequest delegate method is not called, but the link loads in the same WebView(the first one).
我找到了这个,但是没有找到一个与我类似的案例,也没有找到一个解决方案。我对ios app 开发没有太多经验,但我对ios app 开发没有太多经验,但是一个同事是相当不错的,我们没能找到解决这个问题的办法。我们把代码分开分析,但是我们没有找到这个问题的潜在来源,他有一个“强势”的分离项目 强势>,他在那里有同样的问题,只有他使用一个控制器和一个WebView(我们的控制器和nibs,我们独立地创建了这个控制器和nibs ) 。我们在研究和代码检查方面非常彻底。