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

How to remove back shadow in UIWebView while loading PDF in swift

I am trying to display PDF file in UIWebView. Working fine. But, PDF view having shadow on back side. I dont know how to remove it completely. My Code: func webViewDidFinishLoad(webView: UIWebView) { for object in webView.scrollView.subviews …
McDonal_11
  • 3,935
  • 6
  • 24
  • 55
3
votes
0 answers

AFNetworking with UIWebView issue

When I worked with AFNetworking before I used this method webviewMain.loadRequest(request, MIMEType: mimeType, textEncodingName: textEncoding, progress: { [weak self] (bytesWritten, totalBytesWritten, totalBytesExpectedToWrite) -> Void in …
Paul T.
  • 4,938
  • 7
  • 45
  • 93
3
votes
1 answer

How to trigger printer in IOS with my app?

I'm developing an IOS application, using GWT. I want to trigger print functionality in app. Window.print(); The above code is working fine in Safari browser but not from my app. Please provide me the valuable suggestion. Thank you.
nmkyuppie
  • 1,456
  • 1
  • 14
  • 30
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

Possible for UIWebView to detect when a Javascript dialog is about to be shown?

I'm new to iOS development. I come from an Android background. I'd like to know whether it's possible for a UIWebView to detect when a Javascript alert/confirm/prompt dialog is about to be shown? (Similar to how the shouldStartLoadWithRequest method…
Adil Hussain
  • 30,049
  • 21
  • 112
  • 147
3
votes
2 answers

What is the difference between NSURLRequest's mainDocumentURL and URL properties?

I've built a web browser for iOS and I'm trying to pull the URL to display in an address bar. I look at the NSURLRequest in the webView:shouldStartLoadWithRequest:navigationType: and the webViewDidFinishLoad: UIWebView delegate methods. Should I…
Austin
  • 4,638
  • 7
  • 41
  • 60
3
votes
0 answers

UIWebview received memory warning and crash

I locally stored 5 nos of .html files and 2 nos of .js files in application. Created 2 UIWebview in the name of webviewone and webviewtwo. In the webviewone loaded the 1st html file. In the webviewone is visible to userscreen in the device. When…
Senthilkumar
  • 2,471
  • 4
  • 30
  • 50
3
votes
2 answers

How to change dynamically UIWebView's height depending on HTML content?

I have a simple nib with few buttons and UIWebView on which I want to display some HTML. I want to change the height in UIWebView depending on HTML content. But I can't. My nib look like this: My nib My mainViewController.h: #import…
3
votes
1 answer

Why doesn't UIWebView reflow text after column width and gap are set via javascript?

I am loading an html file into a UIWebView and setting the "-webkit-column-width" and "-webkit-column-gap" style property via javascript in webViewDidFinishLoad, but the text isn't reflowing into columns. - (void)viewDidLoad { [super…
Andrew Brown
  • 73
  • 2
  • 5
3
votes
1 answer

Possible to have html button in UIWebView content load new ViewController?

I am developing a mono touch app and need to have a UIWebView take up the entire screen (no navigation controller showing), but have a button on the WebView content be able to load a new ViewController to do barcode scanning. I am not quite sure…
leverage7
  • 85
  • 6
2
votes
1 answer

Avoid UIWebView load iTunes App

How to avoid an UIWebView from opening the iTunes App when loading an iTunes URL? Example URL: http://itunes.apple.com/nl/app/bluppr-postcards/id348147229?mt=8 Above URL loads the iTunes App directly. UIWebViewDelegate doesn't seem to be able to…
Ben Groot
  • 5,040
  • 3
  • 40
  • 47
2
votes
2 answers

iPhone - How to have a custom browser be able to detect if back/forward buttons need to be enabled/disabled

Hey guys! I have a tumblr app that I am developing, and I have a button that pushes a modal view that contains a webview and a toolbar on the bottom with refresh, back, forward and done buttons. The back forward and refresh buttons work, however I…
Alex Muller
  • 1,565
  • 4
  • 23
  • 42
2
votes
0 answers

How to detect URL change through Angular 2 website in UIWebView swift?

I am using UIWebView which load a URL of the website which uses Angular 2 platform. When it loads a new URL (via Angular 2 routing) then that URL isn't detecting by UIWebView delegate. How can I detect if URL change in the inside the Website via…
2
votes
1 answer

How to detect when UIWebView starts loading when Webview is inside a Collection View cell?

I am loading a collection view of cells containing UIWebViews. There's a time gap between when my UICollectionView's activity indicator stops spinning and the UIWebView loads. I am trying to get a reference to when the loading starts (and…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
2
votes
2 answers

How do you create and manage a UIWebView object entirely in code?

I'm adding a UIWebView to my iOS App and I'd like it to open in response to a button getting clicked (so this code is going to be written in one of the button's event handler). How can I create this UIWebView dynamically in code, position it to…
ohadpr
  • 977
  • 1
  • 8
  • 16