On 2013-04-22, at 3:26 AM, Motti Shneor <su...@bezeqint.net> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to