HTML Content Example : This is HTML Content.<div>This is <b>BOLD</b> text </div><div>This is <i> ITALIC </i> text</div>
This is the HTML content which I want to render and place it in a UIImageView and then save this image.
I tried to first render that HTML content and generated a PDF and then convert that PDF into Image but that image is of very bad result. So that's why I am finding some thing that render my HTML content and add into UIImageVIew and than I will easily save that image inside my application memory.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Core Data lightweight migration crashes after App
Try this solution using label/UITextView
set html text to your label.
to take snapshot try below code
I am not sure about this but you can do so something like rendering HTML in the UIWebView. Then take the screenshot via code.