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

webViewDidFinishLoad is not fired when I use goBack

I want to do some extra work after the webpage is loaded, so I add some code in webViewDidFinished, but it seems in this situation it's not working. Situation:I visit a web page with UIWebview then click a link to another, after that, I run…
jeswang
  • 1,017
  • 14
  • 26
4
votes
2 answers

UIWebView: Show image while loading

In my storyboard I have a view with a UIWebView which is filling the entire area except from tab and navigation bar. The controller for the view is implements the protocol UIWebViewDelegate. The controller is set as delegate for the…
dhrm
  • 14,335
  • 34
  • 117
  • 183
4
votes
2 answers

How to enable "select all" in UIWebView in an IPhone App?

I am writing an IPhone application which embeds a UIWebView. There are various safari like features like navigation, etc. One of the tasks I am looking for is to present a "select all" option when the user selects on a piece of text on the web view.…
user299535
  • 121
  • 1
  • 1
  • 3
4
votes
1 answer

Managing page breaks on PDF document generated through HTML [iOS]

I am trying to create a PDF using HTML content. Everything is fine but i have one problem where the page breaks on PDF get inserted between content and cause it to divide between pages. Example: A portrait image with height>width get a page break…
Rishabh
  • 465
  • 5
  • 14
4
votes
3 answers

iOS and Android webview: how to close webview and go back to App?

I am developing a webpage which will be called by an iOS and an Android App using a webview. This webpage would prompt a form to the user The user have to fill the fields and submit the form Once the form is submitted I redirect the user to another…
webpaul
  • 156
  • 4
  • 18
4
votes
1 answer

How to log into web site using uiwebview with swift?

I want to try to log into a web page using UIWebView in an ios applicaiton. However, I do not know how can I do this. I am showing web site with let url = NSURL(string: "http://m.falalem.com") let request = NSURLRequest(URL:…
Emre BEGEN
  • 577
  • 1
  • 7
  • 17
4
votes
1 answer

UIWebViewDelegate methods not getting called

I want to use UIWebViewDelegate methods. I set its delegate to self but still not working -(void)webViewDidStartLoad:(UIWebView *)webView { NSLog(@"Load view"); } -(void)webViewDidFinishLoad:(UIWebView *)webView { NSLog(@"Finish…
Wasim Ahmad
  • 71
  • 1
  • 8
4
votes
2 answers

Capturing information from a UIWebView

I have a UIWebView in my app that parses HTML from a server and presents it. My challenge is that this HTML has a checklist in it, and I would like to capture what the user checks and unchecks the next time I load the same HTML. Is there anyway to…
Yoav Schwartz
  • 2,017
  • 2
  • 23
  • 43
4
votes
2 answers

How to get the url of currently playing video in UIWebview

Is there any way to get the link of currently playing video.I am loading m.youtube.com .For some videos it is not even entering the delegates.I tried using a NStimer as well.But for some videos it is not the clicked url
Jeff
  • 1,405
  • 3
  • 26
  • 46
4
votes
2 answers

Detecting and intercepting video playback in UIWebView

I would like to intercept a click in an UIWebView and then use the URL of the video. How is this possible? I found a somewhat similar post which pointed met to the webView:shouldStartLoadWithRequest:navigationType: delegate. I cant seem to get the…
4
votes
1 answer

UIWebView - PDF HyperLink's crash

I have a UIWebView and I open a PDF in it. The PDF contains lot of hyper link's, I get a action sheet when I long press it.On pressing the open button in the action sheet and if the hyperlink is a valid URL it opens up in safari and if it is…
Satheesh
  • 10,998
  • 6
  • 50
  • 93
4
votes
2 answers

UIWebView back button implementation issue in iPad

I have implemented a browser in my application by using UIWebView, by default I'm loading google page in my browser. When I search something in the google page ,the UIWebViewDelegate's webView:shouldStartLoadWithRequest:navigationType: method is…
Shaik Riyaz
  • 11,204
  • 7
  • 53
  • 70
4
votes
1 answer

How to use shouldStartLoadWithRequest method of UIWebView Delegate

I need to remove the hyperlinks from the URL shown in UIWebView and I have looked at this question: Removing hyper links from a URL shown in UIWebView. I know I need to use this method: - (BOOL)webView:(UIWebView *)webView…
lakshmen
  • 28,346
  • 66
  • 178
  • 276
4
votes
2 answers

uiwebview not loading request even with delegate = self

I have created a NSObject class and included , in the init i create a uiwebview set the delegate to self and send the load request. For some reason webViewDidFinishLoad or didFailLoadWithError never get fired. I can't figure why. // // …
rudirudi
  • 73
  • 1
  • 5
4
votes
3 answers

Listen to all requests from UIWebView

I can intercept the initial load request from a UIWebView with: (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType. How do I log all the requests from the…
DamirDiz
  • 701
  • 2
  • 10
  • 15
1 2
3
21 22