Displaying a .rtf file in an UIWebView

后端 未结 2 1587
离开以前
离开以前 2020-12-21 05:26

I\'m trying to display a .rft file which is download for my server.

I first used a UITextView, but I could see the text but there was a lot of encoding and strange c

2条回答
  •  天涯浪人
    2020-12-21 06:08

    Can you try this?

    NSURL *url = ;
    NSURLRequest *req = [NSURLRequest requestWithURL:url];
    [webView loadRequest:req];
    

提交回复
热议问题