Users Pricing

forum

home / developersection / forums / converting web view contents into uiimage in ios.

Converting web view contents into UIImage in iOS.

Anurag Sharma 1891 06 Jan 2016
I have created a UIWebView in our iPhone application for displaying HTML formatted text. I want to animate web view on screen actually (2 to 10 times). and also my web views having transparent backgrounds.
after that web view is little heavy and although I haven't attempt it yet. I'm planning for the worst(I don't think it is premature optimization, I think it can be an issue).
I want to convert those contents of the web view into UIImages and using animation on it.
So, my problem is: How can I convert Web View contents into UIImage or CGImageRef? and Is transparency of web view be carried on to the UIImage?
Anyone have suggestions for my Issue, then please help me.

1 Answers

Tarun Kumar 07 Jan 2016 Accepted Answer