code to open .docx in iphone webView

后端 未结 1 1403
[愿得一人]
[愿得一人] 2021-01-15 20:19

I\'m new in iPhone, I\'m trying to open .docx file in UIwebView, I wrote the following code

NSString *urlAddress = [[NSBundle mainBundle] pathForResource:@\"         


        
相关标签:
1条回答
  • 2021-01-15 20:32

    ok why don't you use something like this:

     NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [_webView loadRequest:request];
    

    sorry comments were not working,so had to give it as answer.

    0 讨论(0)
提交回复
热议问题