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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -