display text in uiwebview in iphone

后端 未结 1 1594
孤独总比滥情好
孤独总比滥情好 2021-01-13 15:38

I want to display data which is text data , in the uiwebview can some one guide how to do the same.

相关标签:
1条回答
  • 2021-01-13 16:23

    Use UIWebViews "loadHTMLString" method.

    - (void)loadHTMLString:(NSString  *)string baseURL:(NSURL  *)baseURL
    

    example:

    [webView loadHTMLString:@"MyText" baseURL:nil];
    
    0 讨论(0)
提交回复
热议问题