Loading string in UIWebview

后端 未结 4 2149
清歌不尽
清歌不尽 2021-02-07 04:04

How to load a string like below in UIWebview

\"\\n
\\nEgestas rhoncus auctor ac. Risus parturient, mid ultrices nisi.\\U00a0
\\nAugue ac elementum duis aliquet d         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-07 04:15

    This is pretty simple As Below,

     [self.webView loadHTMLString:htmlString baseURL:nil];
    

    You can specify the baseURL to get relative paths working. Is this what you were looking for ? Or more general explanations about UIWebView ?

提交回复
热议问题