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
Post a Comment