I am listening to this delegate method on
- (void)webViewDidFinishLoad:(UIWebView *)aWebView
Whereas the delegate method is appropriate to listen to the end of an iframe request, it seems that my js does not apply on the iframe. It applies to the main document of the uiwebview.
Is there a way to do that : How can I inject js on iframes on a iOS
UIWebView object ?
Thanks for any advice.
The issue is in your JS. You can run operations on your iframe object just fine, in the "myscript" from your question, you will need to run your JS commands on the
object. Or, if you are not referring to the first iframe in your UIWebView, use another selector to refer to the iframe you are attempting to refer to.