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

How to get video position on screen in UIWebview

I am new here and I had read different posts but could not find an answer to my problem. I have a program where I load html content or website into UIWebview and it could have video. I want user to be able to do screenshot of html and video…
0
votes
1 answer

iOS webView not loading mobile optimised page

I am submitting user details to a local server (POST Request) which then makes a call to payment gateway called ----> PayU .Now the response that I get from local server is a url which is a url of payU and I am supposed to load it into webView.Now…
iSD
  • 103
  • 10
0
votes
0 answers

remove unsafe: from NSURL and load rest of URL webview

I have a url like unsafe:customscheme://customResourceSpecifer. I want to remove the unsafe prefix from it and load the rest of url, currently I am doing like this, is there any other way? -(BOOL) webView:(UIWebView *)webView…
hariszaman
  • 8,202
  • 2
  • 40
  • 59
0
votes
1 answer

How to get response headers of a request URL from UIWebView Delegates?

I need response headers of the request URL that I need to recieve and process in UIWebview Delegate method webViewDidFinishLoad: ? But I don't understand how to achieve it. Please note that I don't need request headers but response headers. One idea…
tech savvy
  • 1,417
  • 4
  • 21
  • 42
0
votes
1 answer

Detect tapped image inside UIWebView

I have a web view showing an html + js intro done by someone else. When user taps on a specific image i need to perform a segue. I don't know javascript. If I try with .src returns empty, if try with .innerHTML always return a lot of code. How can I…
Carlos Pastor
  • 531
  • 1
  • 4
  • 18
0
votes
1 answer

How to detect when UIWebView changes page?

How can I detect when a UIWebView changes a page? At the minute I am using - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType but this not only detects the…
ORStudios
  • 3,157
  • 9
  • 41
  • 69
0
votes
2 answers

Random error on loading a static resource with a UIWebView

I'm using a UIWebView to load a static resource shipped within my application bundle. Sometimes, I have no clear what the problem could be, I receive the following error within the delegate method - (void)webView:(UIWebView *)webView…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
0
votes
2 answers

My first iOS app. I have a UIWebView in my ViewController that I want to update

I have a UIWebView in my ViewController that I want to update when the UIApplicationDelegate is passed a URL, like myApp://?changeWebView=newstuff I am building the new URL fine based on the data I am passing in but I can't figure out how to…
0
votes
1 answer

how to customize MoviePlayer of UIWebView

Hi I want to add some custom controls like a UIButton on movieplayer of UIWebView when it is loaded from that webview. Is there any possible way to access the movieplayer of uiwebview or override it with normal MPMoviePlayerController. UPDATE ok you…
hariszaman
  • 8,202
  • 2
  • 40
  • 59
0
votes
0 answers

Dynamic UIWebView methods aren't being called even though the delegate is set and is being logged

I'm calling a UIView (creating it and adding it to the stack) dynamically from an NSObject class that handles the "collecting of data" from various sources to the UIViewController for the UIView I just created. The UiViewController takes the data…
rcpilotp51
  • 524
  • 1
  • 3
  • 22
0
votes
2 answers

I want to get data consumed(in byte or KB or MB) by UIWebView for Loading any URL on it?

I am working on a browser application and i want to track how much internet data is consumed when a web page is load. I am using this method to calculate data received by iOS application. - (void)connectionDidFinishLoading:(NSURLConnection…
Deepak
  • 1,421
  • 1
  • 16
  • 20
0
votes
1 answer

PDF in UIWebView not working

I have two UIPopoverController. each one opens up a pdf in a UIWebViewDelegate when I click the respective buttons. However,only one works. Both buttons, A and B, have this format for the click function (except Button B would say ButtonB not…
0
votes
3 answers

UIwebview does not clear cache in iOS 7

I am working on an app where few HTML,CSS files are downloaded from the server and loaded in the webview like this [[NSURLCache sharedURLCache] removeAllCachedResponses]; NSURL *url = [NSURL fileURLWithPath:htmlfile]; htmlLoadRequest =…
0
votes
1 answer

Hidding Navigation controller before animating UIWebView

I have a native iOS app that will have some native content and some content surfaced in UIWebViews. Overall my navigation is done with a UINavigation Controller, but once I get into the 2nd level of the web app I want to switch to the Web…
0
votes
1 answer

load chain payment url to web view

In my application I want to use chain payment , as paypal ios sdk doesn't support chain payment I am involving back end to this functionality. Now in back end side they are giving me one url which I need to load in web view . This url is of chain…
vivek bhoraniya
  • 1,526
  • 2
  • 17
  • 36