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
1
vote
3 answers

Find text in webview page using swift?

How can I find text in uiwebview page and highlight it and go to its position in the page using swift ? For example chrome find text : search example But I'm using alert view instead : my search example in my app !!!
1
vote
1 answer

Run youtube on webView crash sometimes

I build sample app that load youtube in webview, sometimes in specific videos the app is crash. This is the log: This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird…
1
vote
2 answers

Implementing delegate methods, but still getting a warning?

I'm getting a peculiar warning, specifically this one: warning: class does not implement the 'UIWebViewDelegate' protocol ... when I have these methods in my application: -(void)webViewDidStartLoad { ... } -(void)webViewDidFinishLoad { …
esqew
  • 42,425
  • 27
  • 92
  • 132
1
vote
0 answers

UIWebView contentSize height on landscape issue

I'm facing a strange issue with UIWebView that on landscape, after I rotate the device from portrait its returns incorrect height. For portrait mode I'm returning the height and adjust the height of the UIWebView via constraint. func…
el.severo
  • 2,202
  • 6
  • 31
  • 62
1
vote
0 answers

webViewDidFinishLoad not called for non http:// url schemes

I am trying to load a url scheme for Facebook and place that within a UIWebView as follows: let fb:NSURL! = NSURL(string:"fb://feed"); webView.loadRequest(NSURLRequest(URL:fb)); I have set the webView delegate appropriately and have the following…
pasquers
  • 772
  • 1
  • 8
  • 24
1
vote
3 answers

UIWebView started twice - IOS

I am using the below to add a ProgressView while the UIWebView is loading and dismissing it when it's done. The problem is the UIWebView is started twice and also the ProgressView, So when the page is done loading only one ProgressView is dismissed…
Haroun SMIDA
  • 1,106
  • 3
  • 16
  • 32
1
vote
1 answer

UIWebView get user touch on tapping link

I want to perform some action when the user clicks any link on UIWebView. I am doing this for making this work : - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request…
Nitish
  • 13,845
  • 28
  • 135
  • 263
1
vote
0 answers

Html5 pushState not Trigger shouldStartLoadWithRequest

When h5 using location.href to go to other url, the following delegate api will be called. But it doesn't work when h5 using pushState. Why this happen? And how can I know when the h5 change its content at this time? -…
Andrew
  • 1,088
  • 10
  • 21
1
vote
0 answers

Reload htmlString in UIWebView with Specific TimeInterval

I have developed one iOS application. In my application I have add one UIWebView in all the screen for display ad (In footer all the screen). I have load following html in UIWebView.
ChandreshKanetiya
  • 2,414
  • 5
  • 27
  • 41
1
vote
0 answers

UIwebview initially loaded zoomly?

Hi i am new to iOS development. I have uiwebview for load a website. What is my problem is when the website load 1st time in the uiwebview the page show zoomly. Then when click other page inside or refresh the same page its comes under normal…
Roby
  • 69
  • 1
  • 8
1
vote
2 answers

iOS UIWebview too large for screen

Ok....just doing some self education. Thought I would try and create what I thought was a simple webview of youtube. So the webview opens Youtube but the content is way off the screen. It's like the page is being delivered to a larger device or…
Dobbs
  • 75
  • 1
  • 5
1
vote
0 answers

upload image on didFinishPickingMediaWithInfo in UIWebview url

I load the url in UIWebView, there is an option choose file where i have to open image picker controller and pick image. picked image should upload to that url. Example:- "if profile view loaded into UIWebview than user can change their profile…
1
vote
3 answers

Compare NSURL scheme in Swift with a String

I was wondering if this is possible to do in swift and what it would be the way of doing it? I just want to be able to compare? the scheme of my url to whatever string I want.. This is how I have been doing it in objc. - (BOOL)webView:(UIWebView…
valbu17
  • 4,034
  • 3
  • 30
  • 41
1
vote
0 answers

UIWebView crashed while loading special url request

In my case, I need to add some custom headers for some special requests. so I add following code in UIWebViewDelegate: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request …
amao
  • 41
  • 4
1
vote
1 answer

Web view does not call shouldStartLoadWithRequest on click on link

I am having one web view in which I am loading one HTML page. It is having document where each page is given link (like an index) at the start. Requirement is : When click on web view contents URL, open that link in default safari application i.e.…
iAsh
  • 447
  • 6
  • 19