Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)
Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)
- Subject: Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)
- From: Marco Tabini <email@hidden>
- Date: Mon, 22 Apr 2013 08:33:42 -0400
On 2013-04-22, at 3:26 AM, Motti Shneor <email@hidden> wrote:
> Hello everyone. I asked this several times before, but no one gave any hint -- I'd like to know if anyone here has any clue, at least where to search for an answer.
>
> I need to observe the visible contents of a UIWebView dIsplayed in my iOS application. Each time the visible contents changes, I need to capture the contents as image, and transmit it to our server. A bit like screen-sharing on the Mac, but not for the whole screen contents, just a single view.
My apologies: another possibility would be to poll at regular intervals, but, instead of capturing the entire view, use Javascript to pull its HTML tree, compare it with the previous version, and perform a new capture if you detect changes. It's still brutal, but, in this case, you'd be comparing two strings, which is probably less effort than comparing two images and can be easily delegated to a secondary thread.
—Mt.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden