user2085759
user2085759

Reputation: 41

Call Objective C method when DOM changes.

I need to call objective C code when ever the DOM changes (highlighting happens using JavaScript) from JavaScript code. Is this possible?

I cannot use the delegate

shouldStartLoadWithRequest:

as it is never called when the DOM is changed. And I do not want to do a hard refresh either.

Upvotes: 1

Views: 130

Answers (1)

Shashank
Shashank

Reputation: 1753

You might want to introduce a communication bridge between iOS and javascript. Check this out iOS JavaScript bridge

Upvotes: 1

Related Questions