Anna
Anna

Reputation: 955

UIWebView : Trap intermediate calls made by UIWebView

I am opening a URL using the UIWebView. The Java script that runs in UIWebView makes intermediate requests, Is there any way to get information on these requests and responses?

Upvotes: 0

Views: 60

Answers (1)

Matt Martel
Matt Martel

Reputation: 273

The UIWebViewDelegate method webView:shouldStartLoadWithRequest:navigationType: will let you inspect all the requests for a UIWebView before they are made.

Upvotes: 1

Related Questions