0
votes

I have a UIWebView in my application. If I tell it to open the url @"http://twitter.com/" it open in that same webView fine. But if I ask it to open a url like (similar to the one I need it to open): @"feed://www.OcataCore.com/rss/news.xml" it opens up safari as soon as the view that contains the UIWebview is loaded. Is there a way i can force that url to be opened in my webview ?

2
What happens when you use http:// instead of feed:// ? - Pfitz
@Pfitz : a blank white page is displayed when I use http - pnizzle

2 Answers

1
votes

UIWebView does not offer the same range of features as Safari does. Except html, UIWebView is capable to read the formats listed in this Q&A. It appears like it is not capable of displaying XML, no matter if it is taken from a feed or a local file.

0
votes

agreed, should not be able to open XML files.

hope this helps though if you are just wondering how to open Safari. use this delegate method of UIWebView to open the links.

webView:shouldStartLoadWithRequest:navigationType

that should work.