开发者

view .txt, .pdf files in iphone

I am getting the data of the file from network开发者_运维知识库 and receiving it in NSData(not saving it any were). I want to view the files without saving it anywere.

I tried it with UIWebView but with no success

[webView loadData:data_ MIMEType:@"text" textEncodingName:@"UTF-8" baseURL:nil];

Any hint in right direction would be highly appreciated.


The MIME type is probably not correct. Here is a list of MIME types, which includes types for handling text files of various formats.

You might also edit your question to include how you are instantiating the NSData instance data__.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜