开发者

XML parsing to UITextView?

开发者 https://www.devze.com 2023-03-10 09:57 出处:网络
I am doing a simple rss-reader for a blog. But I don\'t know how to view the blog posts content in a UITextView. For now I can just open them in safari browser and see them there. Would be nice开发者_

I am doing a simple rss-reader for a blog. But I don't know how to view the blog posts content in a UITextView. For now I can just open them in safari browser and see them there. Would be nice开发者_运维问答r to have them a little bit more native. So how can I place a blogpost (xml) in a UITextView? Thanks in advance.


Jacob L


Maybe you could try to show the content of your articles in a UIWebview, and format it on server side?

NSURL *theURL = [NSURL URLWithString: http://url_to_your/article.php?id=26];
NSURLRequest *request = [NSURLRequest requestWithURL: theURL];
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,300,300)];
[webView setDelegate: self];
[webView loadRequest: request];
0

精彩评论

暂无评论...
验证码 换一张
取 消