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

UIWebView's sizeToFit works only once

In my custom UIViewController I have two distinct UIWebViews for which my custom UIViewController is the delegate. In webViewDidFinishLoad:webView I call [webView sizeToFit] and I can confirm it gets called twice, one for each UIWebView. However, to…
Morpheu5
  • 2,610
  • 6
  • 39
  • 72
0
votes
0 answers

UIWebView Creates empty space below textfield when keyboard appears

I'm using UIWebView in Xamarin iOS for loading my webpage When the keyboard appears extra space appearing between textfield and keyboard, I need to remove the unwanted space, Kindly help on this. Thanks in Advance
0
votes
1 answer

UIWebView Delegate Code Doesn't Seem Right

I've implemented sample code using the UIWebView that I found, but it doesn't look right to me, though it works. Specifically because it sets the UIWevView delegate twice (in viewDidLoad and viewWillAppear). Also, myWebView is set as an autorelease…
Lauren Quantrell
  • 2,647
  • 6
  • 36
  • 49
0
votes
1 answer

objective c open links from UIWebView in safari

I have a UIViewController subclass which includes a UIWebView and implements the UIWebViewDelegate. What i want to do is make links pressed in the UIWebView to open in safari. I've read past questions about this, but still can't make it work. Here…
CdB
  • 4,738
  • 7
  • 46
  • 69
0
votes
0 answers

UIWebView crashed in iOS 10

I am implementing the LinkedIn sign in using UIWebView Here is my code import UIKit typealias LinkedInLoginCallBack = ([String:String]?,String,Error?) -> Void class LinkedInWebViewController: UIViewController,UIWebViewDelegate { @IBOutlet…
VishalPethani
  • 854
  • 1
  • 9
  • 17
0
votes
2 answers

iPhone : nib file + code = mix up

I'm getting a little confused about when I should use a NIB file and when I should use code. Here's my problem : I have a navigation based application with a RootController and its NIB file. The RootController's NIB file contains a TableView. When I…
teum
  • 125
  • 3
  • 12
0
votes
1 answer

Autozoom webview scrollview in Objective C

I want to autozoom my webview's scrollview from my code . My desired output is But I am getting this I am sharing my code please help me out. webView.contentMode = UIViewContentModeScaleAspectFill |…
Mahboob Nur
  • 739
  • 2
  • 9
  • 34
0
votes
1 answer

Setting the Delegate for Multiple UIWebViews on the same ViewController

I have two UIWebViews, one to handle normal files and one to handle PDFs (which opens as an overlay, on top of the other web view). Both webviews are setup as below: //Options for webView webView.delegate = self; webView.scalesPageToFit = YES; for…
Dan Hanly
  • 7,829
  • 13
  • 73
  • 134
0
votes
1 answer

UIWebView doesn't rotate with multiple tabs application

I am using UIWebView to display the PDF and Word documents on iPhone. I want them to auto rotate when device orientation changes. For that I have added following delegate method. Something weird is happening though. It works fine when I have I have…
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139
0
votes
0 answers

UIWebView content loads successfully but gives pop up

I am loading (1) HTML string (2) Web URL in UiWebView. For some content, I am getting alert: "There is some issue while processing your request" still it loads content. The following delegate called: - (void)webViewDidFinishLoad:(UIWebView…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
0
votes
2 answers

Inside UITableViewCell, I am getting delegate callback of old UIWebView?

I have custom cell inside which there is UIWebView and based on its content height, I am setting height for that row. This is done after I get following delegate call: - (void)webViewDidFinishLoad:(UIWebView *)webView Here is what I am doing: -…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
0
votes
1 answer

iOS - PDF Loaded in UIWebView then save to iBooks using UIDocumentInteractionController

I am loading a PDF from the web using a UIWebView, which works great and lets me interact with the PDF how I want. Next I would like to be able to save that PDF to iBooks, so I am using a UIDocumentInteractionController. In reading the docs it…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
0
votes
0 answers

UIWebView to call the URL from a firebase database

I don't know if this is the case of me just missing an obvious solution or what but i'm hoping you can point me in the right direction. I have a firebase database which provides the information for the articles such as the name, img etc it also…
farmerhnf
  • 13
  • 1
  • 2
0
votes
0 answers

Handling relative paths in a presented webview

I have a custom UIViewController with a UIWebViewDelegate. I've presented a webpage based on a url. I'm having issues with some of the links on this page as they are relative paths. Tapping on those links do nothing but I'd like to get the links…
domdomcodecode
  • 2,355
  • 4
  • 19
  • 27
0
votes
1 answer

Xcode 9 : Navigation item title of UIWebView is loaded after WebView is loaded

I’m loading a some URL content in WebView. The title of navigation item is set to web view title (refer below code) : extension WebPageView: WKNavigationDelegate { func webView(_: WKWebView, didFinish _: WKNavigation!) { loader?.hide() …
Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177