objective c - Getting response for the request triggered from UIWebView iOS? -


i have uiwebview added subview view controller's view. when user enter username , password, login service called web service.

the response received in uiwebview

1. possible response uiwebview application?

2. how can response accessed application?

in delegate method:, can html content of webview using below code.

- (void)webviewdidfinishload:(uiwebview *)webview {  nsstring *html = [webview stringbyevaluatingjavascriptfromstring:                                           @"document.body.innerhtml"];  } 

if using nsurlconnection response can captured in following delegate method:

- (void)connection:(nsurlconnection *)connection didreceiveresponse:(nsurlresponse *)response  

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -