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
0
votes
1 answer

Crash when closing PDF in uiwebview

Im opening a PDF from the button hulp This is the code: -(IBAction)hulp; { NSString *path = [[NSBundle mainBundle] pathForResource:@"Handleiding" ofType:@"pdf"]; NSURL *targetURL = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest…
David Raijmakers
  • 1,369
  • 1
  • 16
  • 40
0
votes
1 answer

iOS - UIWebViewDelegate intercept javascript calls

I'm using pretty much the this process oulined here to allow javascript to call objective c from my iPad app: http://www.stevesaxon.me/posts/2011/window-external-notify-in-ios-uiwebview/ My javascript code that I'm injecting into the page…
ctrlspace
  • 519
  • 5
  • 15
0
votes
1 answer

UIWebView loads HTML from local file but fails occasionally

I've come across many ways to load and reload the content of a UIWebView from a local html file but it seems like the issue I have keeps coming back. On my project I have a webView that dynamically loads HTML content pulled from one of the 50…
Broco
  • 679
  • 1
  • 4
  • 16
0
votes
2 answers

Given the url of a page how can I access the html, and use regex to extract the html between a certain div?

Given a URL of a webpage, I need to get the HTML between an opening
and a closing
of a particular class. I think if I can return the whole html code of the page as a string I could use RegEx to extract between the HTML between the…
Lewis
  • 159
  • 10
0
votes
1 answer

iOS app automatically opens Safari with the url of the last site visited from the app

I'm using UIWebView inside my iOS app and I'm displaying a web app I have added to the actual project. Inside shouldStartLoadWithRequest I'm handling clicks on links (local files I'm opening in the same UIWebView, and web links I'm opening in…
Eedoh
  • 5,818
  • 9
  • 38
  • 62
0
votes
1 answer

How to create then destroy a UIWebView inside a class file

I am trying to dynamically create a UIWebView inside a class file upon launching the application. I have successfully gotten a function to be called inside that class file upon launching, but when I add the the code to create the webview to that…
ccagle8
  • 308
  • 1
  • 2
  • 12
0
votes
1 answer

UIWebView shouldStartLoadWithRequest not called in iOS 4.3

UIWebView's shouldStartLoadWithRequest is fired by javascript with window.location = updateappdata://type/viewName/; and it works perfectly in ios 5.0, 5.1, 6.0 However in ios 4.3 only some of updateappdata:// callbacks are called, not all…
Olga Dalton
  • 829
  • 3
  • 15
  • 25
0
votes
4 answers

iOS - dismissModalViewController not working

A tap on ShowWebsiteButton on MainViewController shows a Website on WebViewController. A tap on CloseWebViewButton on WebViewController should dismiss the WebViewController and show me the MainViewController again. NOTE: MainViewController opens the…
user1010563
0
votes
1 answer

UIWebView bouncing callback

Is there a way for capturing a callback when the loaded web page in UIWebView is bouncing because user tried to scrolled to far? i.e. user scrolls to the top of the webpage and he tries to scroll further, then bounce occurs. I want to capture such…
Ertai
  • 1,735
  • 2
  • 23
  • 29
0
votes
1 answer

Open links Explicitly in Safari from a Table Detail View

All, I have rich text, with links, in my UITableView's detail View: When a link is pressed, the URL is loaded into the UIWebView where the rich text is being displayed. I'd like the URLs to open in Safari instead. Can someone tell me how to…
Slinky
  • 5,662
  • 14
  • 76
  • 130
0
votes
1 answer

Objective-C method from javascript is not called

I have a UIWebView that contains button with JS function, but the delegate method is called only on load page and not on the button pressed, as I intended. What is the problem? P.S. I am testing on simulator. in .h: @interface MyViewController :…
Luda
  • 7,282
  • 12
  • 79
  • 139
0
votes
2 answers

UIWebView loadRequest reuse gives flickering effect

I have multiple pdf files. Based on user input i am loading the pdf using UIWebView. On first loadRequest it loads the pdf properly. From second call to LoadRequest onwards its showing some flickering effect while loading the new pdf.. Meaning that…
Srivathsa
  • 606
  • 10
  • 34
0
votes
1 answer

Loading a webivew inside a webview in iOS

I am facing an issue while loading a UIWebView.I have a webview(1st) where a url is loaded.when that page is loaded,I am creating a small view which has webview (2nd) on top of the first webview,which is loading a second url.Basically I am loading a…
dead_soldier
  • 429
  • 1
  • 5
  • 18
0
votes
1 answer

Autologin using ASIHTTPRequest in a web based form login inside a UIWebView

I'm trying to accomplish an autologin using ASIHTTPRequest library in a web based form login inside a UIWebView. I want to make it persistant, so the following requests made by the user in the UIWebView use the credentials supplied from the…
0
votes
1 answer

how to connection between two webview on a same sceen

how to create a connection between two webview, and also it should communicate. These both webview contains javascript. One thing more how to invoke javascript methods from ojective c(Xcode).
1 2 3
21
22