开发者

How to load ppt and csv files into UIWebview

Is it possible to load and display the .csv files and .开发者_如何转开发ppt files into UIWebview. If then can anyone suggest me how it can be implemented.

Thanks in advance


For loading file in UIWebView you have to create request as below:

[webView loadRequest:[NSMutableURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Question" ofType:@"csv"]]]];

Same is also applicable for PPT, PDF etc.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜