display text in uiwebview in iphone

后端 未结 1 1593
孤独总比滥情好
孤独总比滥情好 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)
提交回复
热议问题