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

Trying to get webView to load 2 URLS after another

Im trying to make it load 2 webviews after one gets finished loading then it will go to the next one and start to load that one and if both of them are loaded it will send a notification. It gives an error after @IBAction func…
Sadin
  • 25
  • 7
0
votes
0 answers

UIWebview Print option

I've created a container iOS app(objective c) which has only one webview. The webview is loaded with a website which is not owned by me. The website that i am accessing from webview has a print button. Tapping on it doesnt do anything. The same…
0
votes
0 answers

UIWebView stops loading with shouldStartLoadWithRequest

I'm building an iOS (swift) app that contains a UIWebView. The webpage presented in the webview calls a javascript method with some info that I'm catching with an injected javascript object. The following is the implementation of said…
0
votes
2 answers

How to load a url link that is inside a web view and keep it in that web view in SWIFT

I have a web view that has a webpage with links at the bottom. I have a way to deal with them being clicked, but all it does is open them into a new safari browser. This is not what I want.I would like for them to stay inside the web view and allow…
MNM
  • 2,673
  • 6
  • 38
  • 73
0
votes
0 answers

Unable to load redirected URL in UIWebview while loading through loadHTMLString

there is a url that gets redirected to another url when loaded in web, now if i request that url i get html content and then i load that html content in uiwebview, but it doesn't get redirected to other url. redirected url is not received in…
nehaSingh
  • 71
  • 1
  • 7
0
votes
0 answers

Swift 2 Webview Load Delegate functions

I'm trying to understand how can I make one Webview from a URL to know when it starts loading and when it finishes. With the following code class WebsiteViewController: UIViewController, UIWebViewDelegate { override func viewDidLoad() { …
Konstantinos Natsios
  • 2,874
  • 9
  • 39
  • 74
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
2 answers

How can I get response from UIWebView page to an iOS app?

I'm using UIWebView as a subview in a UIViewController. What this WebView does is it allows user to submit a form and that form responses as JSON object. How can I get this response to an app? I'm not able to find what response comes. All I know is…
Hiren Prajapati
  • 717
  • 3
  • 10
  • 25
0
votes
2 answers

NSAssert not work in uiwebview delegate method

In a UIWebView's delegate method webView:shouldStartLoadWithRequest:navigationType:, I put an NSAssert there, but it just output a log, instead of terminating. Here is my code: - (BOOL)webView:(UIWebView…
zhao yang
  • 33
  • 2
0
votes
1 answer

Different URL Load with shouldStartLoadWithRequest

i am currently using http://something.com this link inside the uiwebview for my ios app. In this dummy website there is another link. I wanna open native ios camera screen after clicking this link. Right now i am able to open cam only for…
0
votes
1 answer

Image Picker - null passed to a callee that requires a non-null argument

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [self presentViewController:viewController animated:YES completion:nil]; UIImage* image = [info…
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

Subclass UIWebView to Append Every Link (in Swift)

I was wondering how I could subclass UIWebView to append every link the user goes to with a string at the end like "=Human". To be clear, if the user goes to Yahoo.com and then clicks on any link it will still have the "=Human" at the end.
jordanbana
  • 97
  • 6
0
votes
3 answers

How to invoke the UIWebview's delegate method?

the Question : how to invoke the UIWebview's delegate method - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType Please show me all of the…
user5465320
  • 719
  • 2
  • 7
  • 15
0
votes
2 answers

Click html link in iOS UIWebView do nothing

I have UIWebView that load html content using loadHTMLString from core data. If i have html link (eg. google) in html content and click this link it does nothing. Absolutely nothing happen. I tried to implement…
marysmech
  • 183
  • 1
  • 3
  • 10