Questions tagged [webviewdidfinishload]

14 questions
3
votes
1 answer

webViewDidFinishLoad not firing called working

(Swift, iOS8, Xcode6, iPhone/iPad) webViewDidFinishLoad is not being called, is not firing, and is not working. Yes, I have set the containing view controller as the delegate. I CTRL-mousedowned on the UIWebView, dragged up to the little yellow…
kmiklas
  • 13,085
  • 22
  • 67
  • 103
3
votes
1 answer

Trigger webViewDidFinishLoad for google search results

I am trying to run code when a page is finished loading in my webViewDidFinishLoad. However, if I visit google.com in my UIWebView then type in a search, the first query works, but all additional searches will not trigger the webViewDidFinishLoad.…
Bot
  • 11,868
  • 11
  • 75
  • 131
1
vote
1 answer

How to add close or back button in Xcode using swift language when a file such as pdf, ppt .. etc. is opened?

First of all I'm new in swift and objective c languages. My problem is that I have a WebView app for iOS device using swift language , the app when opens a document file such as pdf, ppt,...etc. there is no option to close the file or back to…
Shko
  • 23
  • 3
1
vote
2 answers

webView didFinish Navigation never gets called

I am trying to get the splash view ( back_button ) to remove itself once the webpage fully loads, I had done quite a bit of researching and they always point to the same code as an answer. However, mine will not get called. Can somebody advise what…
1
vote
5 answers

Detect all UIWebViews load finish : Objective-C

As mentioned in the title, I'm looking out for the way to detect all of the UIWebViews has finished load that are loading HTML string simultaneously. I have one custom view in which there are 5 web views (1 for question and 4 for options). Each of…
iAkshay
  • 1,143
  • 1
  • 13
  • 35
1
vote
1 answer

How to disabled uiwebview auto scroll to top when finished load

I added same subviews in the UIWebView's scrollview.When the webview get contentSize the scrollview will scroll to top.Now I'know the event happend before finished(some images may still loading) but after get the text content.What should i do? This…
six
  • 115
  • 1
  • 1
  • 7
0
votes
1 answer

I want to show web content simultaneoustly when switching from one screen to another

I am showing html string on web view. But it takes 2-3 sec to show on the webview. When i am switching from one screen to another, then the web view content must be shown simultaneously. How can i do that ? View Controller1 class ViewController:…
Rahul Chopra
  • 187
  • 1
  • 13
0
votes
1 answer

How to check if wkwebview finished loading in UItest

I want to take a screenshot of the app when it loads a html file. However sometimes the wkwebview takes a long time to load the html file. Currently I have to use sleep(5) to wait for the wkwebview to finish…
Kelvin Tan
  • 982
  • 1
  • 12
  • 33
0
votes
1 answer

Unable to load PDF file on Webview with warning void SendDelegateMessage(NSInvocation *)

I am new in iOS and when I open PDF in UIWebView I am getting warning like this in console. void SendDelegateMessage(NSInvocation *): delegate (webView:didFirstLayoutInFrame:) failed to return after waiting 10 seconds. main run loop mode:…
Muju
  • 884
  • 20
  • 54
0
votes
0 answers

Variable set to undefined from webViewDidStartLoad to webViewDidFinishLoad

I have a UIWebView and the UIWebViewDelegate. At the method webViewDidStartLoad I define a variable bs with another class burningSoft -(void)webViewDidStartLoad:(UIWebView *)webView { NSLog(@"webViewDidStartLoad"); NSLog(@"burningSoft 1:…
Premox
  • 323
  • 10
  • 25
0
votes
0 answers

UIWebView Charging complete

Is there any way to know if all of the content of the UIWebView is loaded? I'm loading the content as follows: if let url = NSURL(string: currentArticle.articleURL) { webView.loadRequest(NSURLRequest(URL: url)) } webView.footerView =…
0
votes
1 answer

How to wait until webViewDidFinishLoad is called?

I'm creating an iOS app. I separated a PDF which has multi page into each pages, And then create UIWebViews to show each pages. The code is like this. for( int i = 0; i < _pageNumbers; i++) { _webView = [[UIWebView alloc]init]; …
Masaru Kitajima
  • 343
  • 1
  • 2
  • 13
0
votes
2 answers

IOS Use variable take in method webViewDidFinishLoad

I have two webView, in the first i load an hostname and, when webViewDidFinishLoad i take a part of current url with this method: //Method that take a part of currentUrl of a webView - (NSString *) webViewGetLocation { NSString *html =…
debug86
  • 1
  • 1
  • 1
0
votes
0 answers

Trigger for UIWebView webViewDidFinishLoad

Does anyone know what in the html document triggers UIWebView's webViewDidFinishLoad delegate method? I'm thinking it's document.ready but can't verify. And if it is document.ready, does it wait for everything inside document.ready to finish before…
AhR
  • 1
  • 2