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

ios - How to declare setToken method?

I'm trying to get access token from Google,Yahoo.But I'm getting an error like WACloudAccessControlClient may not respond to setToken.How to declare setToken method here. -(BOOL)webView:(UIWebView *)webView …
0
votes
2 answers

webViewDidFinishLoad not calling when having javascript content in webpage

I'm using UIWebView in a project. Sometimes it doesn't call the webViewDidFinishLoad method. Because the web page have some javascripts. The method - (BOOL) webView: (UIWebView *) webView shouldStartLoadWithRequest: (NSURLRequest *) request…
mychar
  • 1,031
  • 1
  • 11
  • 20
0
votes
1 answer

UIWebView enable/disable back/forward buttons

On the iPad I get weird situations with enabling and disabling the back/forward buttons. When web view starts and finishes the load, I check to enable/disable them based on canGoBack and canGoForward. But most of the time the buttons are enabled…
Maximilian Litteral
  • 3,059
  • 2
  • 31
  • 41
0
votes
2 answers

Get JavaScript command executed while tap on UIWebView

I need to get or capture the JavaScript command executed when I tap on a button or a menu into a web from UIWebView I don't know wich functtion uses a site to upload a file so I need to capture it. The purpose of this is to make a javascript file…
isiaatz
  • 1,125
  • 4
  • 15
  • 22
0
votes
1 answer

Loading links from with uiwebview into customized webview

I am working with UIWebView, in the detailed view of my app, I open a url into a webview and embed the webview into my detailed view(which is a uiview). Now the content of the embedded webview has web links, which when clicked open up into the same…
user1242321
  • 1,578
  • 2
  • 18
  • 30
0
votes
1 answer

Open WebView links in Safari

When Running the app it first loads, then loads the web page in safari. How would I make the page load in the UIWebView and have the external links in the webView open in safari? Here is some of the Code of The webviewcontroller.m - #import…
Ethan S.
  • 1
  • 2
0
votes
2 answers

Bool web view function not working as planned

Basically, what I want is a function that executes this function [self.navigationController popViewControllerAnimated:YES]; when a certain button is pressed and if you are on a Google page. But the function happens even if I am not on a Google page.…
Moo Moo
  • 85
  • 7
0
votes
1 answer

UIWebView's loadHTMLString: occasionally taking 10+ seconds to load

I have a UIWebView that loads a page (that includes several external css and js files) via loadHTMLString. When I am NOT on wifi, it sometimes takes 10+ seconds to render the html page. I don't know what could be causing it to take so long because…
D-Nice
  • 4,772
  • 14
  • 52
  • 86
0
votes
0 answers

Different response from UIWebView in iPad and iPhone

I am trying to load a protected docx file in UIWebView. In iPad webViewDidFinishLoad gets fired with OfficeImport error. But in iPhone neither webViewDidFinishLoad nor didFailLoadWithError gets fired. In both cases webViewDidStartLoad gets…
Nibin V
  • 474
  • 6
  • 24
0
votes
1 answer

iOS Sharing cookies across different UIWebViews

Is it possible to share cookies across two different UIWebView instances. What I am trying is in an UIWebView I load a request and in the shouldStartLoadWithRequest delegate method I check whether the request type is either…
saikamesh
  • 4,569
  • 11
  • 53
  • 93
0
votes
1 answer

Setting a webview delegate for a segue controller?

I have two view controllers connected by a modal segue. The destination controller also has a UIWebView. Reading the docs I would like to elect the first controller to be responsible for dismissing the webview controller and my action for doing so…
kain
  • 5,510
  • 3
  • 27
  • 36
0
votes
1 answer

UIWebView inside UICollectionViewCell does not call Delegate Method

I am currently embedding a UIWebView inside a UICollectionViewCell to be able to view HTML formatted text residing in my local data structure. I know it has been stated many times one should not embed an UIWebView inside a scrollView, but i…
0
votes
1 answer

How to make UIWebView Blank when its already loaded once?

I am allocating and initializing the UIWebView in the viewDidLoad and I am loading the webview in the viewDidAppear. So i want to clear the contents the UIWebView once its loaded by clicking a button.
Gourav.J
  • 21
  • 3
  • 8
0
votes
1 answer

ios : UIWebview and its delegate methods in same class not working

I want to open links of uiwebview in to the safari browser my code is working perfectly if I implement shouldStartLoadWithRequest method in viewController but when I implement shouldStartLoadWithRequest in same class and set UIWebView's delegate to…
Pankaj Khairnar
  • 3,028
  • 3
  • 25
  • 34
0
votes
1 answer

Hyperlink click method in UIWebview

I have one UIWebView in my iphone app and I have to detect on click method whenever user will click on any hyperlink. I want to call one method when user will click on hyper link I know about the method -(BOOL)webView:(UIWebView *)webView…
Aakil Ladhani
  • 984
  • 9
  • 32