Questions tagged [uiwebviewdelegate]

The methods declared by the UIWebViewDelegate protocol allow the adopting delegate to respond to messages from the UIWebView class

The methods declared by the UIWebViewDelegate protocol allow the adopting delegate to respond to messages from the UIWebView class. On UIWebViewDelegate, you can find the following methods:

Loading Content

– webView:shouldStartLoadWithRequest:navigationType:

– webViewDidStartLoad:

– webViewDidFinishLoad:

– webView:didFailLoadWithError:

322 questions
9
votes
2 answers

How to find last load of UIWebView(Ready State 4)

I have a problem with the didFinishLoad method in UIWebView that is keeps firing. I want to try the estimatedProgress solution, however I dont know where to find those frameworks unfortunately. I am running Mountain Lion and using the latest version…
chaitanya.varanasi
  • 960
  • 1
  • 9
  • 26
8
votes
4 answers

how does one check if UIWebView is empty or not

I need to check if a webview when completed loading has any content or not. What I require is simple. Its a small webview strip at the bottom of my pages (like an advert) I call NSURLRequest *request=[NSURLRequest requestWithURL:adURL]; [gWebView…
Anand
  • 4,182
  • 6
  • 42
  • 54
8
votes
2 answers

Get all text which is on screen in UIWebView

I need to get all words, which are visible on screen from UIWebView. My UIWebView have html content. Someone can help me please.
Romit M.
  • 898
  • 11
  • 28
7
votes
2 answers

New error in iOS 5: WebKit discarded an uncaught exception

I am trying to load a UIWebView with the Facebook OAuth authorization URL and I am using the following code. When my UIWebView loads with Facebook login page, I enter my credentials, then press the "Log in" button. When I hit the button I am getting…
AAV
  • 3,785
  • 8
  • 32
  • 59
7
votes
2 answers

UIWebView and timeouts

I'm using a UIWebView to display some content. Within this content the user can navigate through a bunch of sites which are being loaded using AJAX. One step on this sites requires quite some time. Since I didn't find anything about a timeoue for…
flohei
  • 5,248
  • 10
  • 36
  • 61
7
votes
2 answers

How can I get a UIWebView to focus on a form input and bring up the keyboard?

I've created a UIWebView for logging into Facebook's Graph API OAuth interface. This works great, but I have to tap the first input field in order for the keyboard to pop up. Ideally, the keyboard would appear as soon as the form appears. So I've…
theory
  • 9,178
  • 10
  • 59
  • 129
7
votes
0 answers

Instagram iOS API Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted"

I am working on a project for iPhone where I have to take images from Instagram. I implemented the following API as mentioned on its developer…
Sanchit Paurush
  • 6,114
  • 17
  • 68
  • 107
7
votes
2 answers

How do I detect an authentication challenge from a UIWebView?

I've seen many questions that ask (and answer) how to supply credentials when you know beforehand that the request requires them. When I load a site that requests an authentication challenge, (responds with HTTP 401), my UIWebViewDelegate only…
Heath Borders
  • 30,998
  • 16
  • 147
  • 256
6
votes
1 answer

UIWebView producing about:blank requests when iframe appended

This simple code var iframe = document.createElement('iframe'); document.documentElement.appendChild(iframe); injected by UIWebView stringByEvaluatingJavascriptFromString produces invocation of UIWebViewDelegate shouldStartLoadWithRequest with…
Pavel Zdenek
  • 7,146
  • 1
  • 23
  • 38
5
votes
2 answers

Detect and Customize UIWebView's "Unable to Read Document" error

I'm testing a UIWebview with a number of different document types - .xlsx, .jpg, etc. - and it opens most of them just fine. From time to time, I open a local file and this message appears right in the web view: Unable to Read Document An error…
cetcet
  • 2,147
  • 2
  • 15
  • 15
5
votes
1 answer

Swift get headers from UIWebView response

I am unable to get headers from a UIWebView response as the response apparently hasn't been cached. Is there a workaround? I have tried code from here. My application uses mixed native iOS view controllers and UIWebView. When I start a UIWebView…
markhorrocks
  • 1,199
  • 19
  • 82
  • 151
5
votes
2 answers

Properly force or allow Landscape mode for Youtube embedded video in iOS 8 without NSNotificationCenter

I am having issues of capturing when the youtube player will enter in fullscreen or exit fullscreen in iOS 8 because these notifications were removed UIMoviePlayerControllerDidEnterFullscreenNotification and…
valbu17
  • 4,034
  • 3
  • 30
  • 41
5
votes
1 answer

Get the http response code from every UIWebView request

I need to check the response status code while loading any of the url in the webview fo. For now we can consider any of the web application I am loading inside the web view.So I need to track down every request withing that webview and check out the…
5
votes
1 answer

UiWebView response to window.print

Is there a way to detect window.print from a UIWebView and respond to it? I have printing in my UiWebView and need to have a way to react to that event from the UIWebView.
Chris Muench
  • 17,444
  • 70
  • 209
  • 362
5
votes
4 answers

ios - UIWebView DidFinishLoad not being called

I have a UIWebView that works ok. The delegate is working. When I open a URL, events shouldStartLoadWithRequest and webViewDidFinishLoad are fired. But when for example I click on a Google search result, only shouldStartLoadWithRequest is fired, and…
1
2
3
21 22