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
2
votes
4 answers

Get updated url from uiwebview

I have a uiwebview I open http://google.com in it. Then I type something in google search bar and search for something. I want to get that updated url that is generated as a result of my search on google. - (void)viewDidLoad { [super…
2
votes
1 answer

how to disable hyperlink and copy/paste menu on iOS and webviewdidfinishload not called

I'm trying to disable hyperlink and copy/paste menu on iOS UIwebview so I googled and there were a lot of answers. then I encountered with another problem 'webviewdidfinishload not called' so I add my code to ask your help. (Iam sure I properly…
2
votes
1 answer

Loading images in webview blocking MAIN THREAD despite using multithreading

I have a html string which contains tag with a image URL. I have loaded the html string as follows using grand central dispatch.. But my app stuck till the images fully loaded..help me…
2
votes
2 answers

iOS 6 UIWebView loadHTMLString with base URL

I am having a huge problem on iOS 6. I need to display a webpage when the app starts. I use the loadHTMLString for this. On everything before iOS 6 everything works as expected, but on iOS 6, it seems to take approx. 2 minutes to load anything that…
Trausti Thor
  • 3,722
  • 31
  • 41
2
votes
0 answers

Issue with loading an URL in iOS 6 (works fine in iOS 5)

I am calling an urlRequest in my webview and it redirect to another url which works perfectly fine with iOS5 but in iOS6 it is just showing the blank page. It doesnt give any webview error and webviewFiniishedLoading method calls but just display…
user431791
  • 341
  • 2
  • 17
2
votes
1 answer

iOS 6 UIWebView delegate methods

I have a UIWebView that loads a page hosted on a remote server. On document ready, it fires an asynchronous jQuery.ajax request to a server to populate a drop-down with a list of values returned from the server. While it is loading the page and…
Fergal Rooney
  • 1,330
  • 2
  • 18
  • 31
2
votes
2 answers

Issue with UIWebView in iPad

I see the following message and no webpage while trying to load a valid URL : delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode Can…
Ahsan
  • 2,964
  • 11
  • 53
  • 96
2
votes
1 answer

how to allow javascript alerts to actions on the uiwebview

I am loading a webpage on to my UIWebView. The webpage loaded successfully and the buttons on the webpage working fine. But I am unable to see the alerts on the webpage which should pop-up when i enter wrong text into the text box on webpage. How…
kumar
  • 453
  • 1
  • 5
  • 26
2
votes
1 answer

Determine height of UIWebView content (embedded in UITableViewCell)

I've got a UITableView holding UIWebViews of variable height, and the user has the ability to edit the content of each web view. The content of each cell (a web view) is linked to a NSManagedObject subclass that has the height of the content stored…
superhawk610
  • 2,457
  • 2
  • 18
  • 27
2
votes
1 answer

UIWebView: Why does the request not time out when using a non-existant hostname?

My situation is this: I have a UIWebView which makes a POST request to a URL where the hostname is provided by the user. When the hostname does not exist, I need to timeout so that I can alert the user to say that they should check the their…
Stretch
  • 3,669
  • 2
  • 28
  • 40
1
vote
0 answers

Links will not open from within a UIWebView

I'm loading a local HTML file into a UIWebView when my application starts. The file contains links (absolute URLs) to external sites. The local file loads in the UIWebView in the iPad simulator without any issues. However, when I click on any of…
1
vote
2 answers

how to get NSURLRequest in UIWebViewDelegate#didFailLoadWithError?

How can we retrieve the NSURLRequest that failed to load when the UIWebViewDelegate is called back with didFailLoadWithError (which gets only the NSError) ? We could stash the NSURLRequest when shouldStartLoadWithRequest is called, but what if the…
tribalvibes
  • 2,097
  • 3
  • 25
  • 30
1
vote
1 answer

UIWebView's shouldStartLoadWithRequest doesn't called sometimes

I am using a UIWebView in my app and I am overriding the shouldStartLoadWithRequest message to detect what kind of link is being clicked. If it's a "special" link, I push a UIViewController onto the stack and return NO from this method. This works…
salil
  • 407
  • 3
  • 14
1
vote
3 answers

Cancel button/touch for UIWebView

I wonderd if there is any way to make the user dismiss the WebView window if he doesn't want it anymore on the screen...? I looked at this post but i didn't understand it well. How to cancel a UIWebView? can anyone give me an example please? This is…
Maor Zohar
  • 592
  • 5
  • 17
1
vote
1 answer

uiwebview request set httpBody

I am working in a UIWebView ios app. in the delegate method: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType I get the body as follow: NSString…
ValentiGoClimb
  • 750
  • 3
  • 13
  • 23