2010-11-12 75 views
0

我解析“http://feeds.epicurious.com/newrecipes”网址,我按照以下格式读取网址。URL加载问题

http://feeds.epicurious.com/~r/newrecipes/~3/TGBDO1Ld400/361889

,当我在UIWebView中把这个上面的URL,这是行不通的。

但是,当我把这个URL在网页浏览器中会自动改变为以下格式。

http://www.epicurious.com/recipes/food/views/Cherry-Cranberry-Sauce-361889?mbid=rss_epinr&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+newrecipes+%28Epicurious+-+New+Recipes%29

如何来解决这个问题。如果有人有任何想法,请回答我。

谢谢..

回答

1

我能得到相同的链接与仅包含一个出口到一个名为“浏览器”的UIWebView股票iPad的拆分视图控制器加载。我从viewDidLoad调用了这段代码:在根视图控制器中:

[detailViewController.viewer loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://feeds.epicurious.com/~r/newrecipes/~3/TGBDO1Ld400/361889"]]]; 

希望有所帮助。