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
2
votes
1 answer

how can i add proxy to a request using afnetworking

I have been trying to add proxy for a link to be opened in my webView using afnetworking.I'm setting up a webview but I need to load the content of the webview using a proxy. Any of you knows how can I'm implement the proxy in NSURLRequest? what i…
nehaSingh
  • 71
  • 1
  • 7
2
votes
0 answers

How to reload/update UITableView after resizing a cell containing web view dynamically?

I have few sections in table view. One section has only one cell containing a UIWebView. When it got loaded with html, I update cell with correct height as follows: func webViewDidFinishLoad(webView: UIWebView) { var frame = webView.frame …
2
votes
2 answers

webViewDidStartLoad not working

webViewDidStartLoad and webViewDidFinishLoad are not working. What I have already done: webView.delegate = self; added UIWebViewDelegate placed the code in viewDidAppear. Here is the code: func webViewDidStartLoad(webView: UIWebView!) { …
system21
  • 361
  • 4
  • 16
2
votes
2 answers

Image and Html content on app screen with combined scrolling

Problem I want to display an image and Html text on the app screen. The text is large so it may not fit on a screen so I want the content to be scrollable. WebView by default has scroll functionality for content going beyond screen size. But I don't…
mohitm
  • 153
  • 10
2
votes
0 answers

Passing the ios variable value to javascript function in phonegap

How can I pass the variable value (which is initialised in app delegate) to the javascript function on index page load. I am using cordova phonegap.
mobizen
  • 483
  • 8
  • 20
2
votes
0 answers

Get URL from UIWebView after redirect

My app writes out a small HTML file to the user's temporary cache. This file points to the our login in server, and contains the user name and password and a redirect to the actual URL I want the user to go to. Everything works OK but within the…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
2
votes
0 answers

Integrate native iOS navigation and web navigation

In my iOS app I have to have some native code and some web code. I am having a little difficulty integrating the navigation of the two. For iOS I am using an embedded UINavigationController. In the web app I am using a single page application…
2
votes
2 answers

Programmatically add content on UIWebView cursor position

I am loading HTML content in UIWebView. My page contains UIButton and UIWebView containing some HTML content. UIWebView is editable, so user can move to particular content of UIWebView. What I actually want to do so, on button click text(suppose…
Ankita Shah
  • 2,178
  • 3
  • 25
  • 42
2
votes
0 answers

Progress bar (and network activity status) for UIWebView

After a long break I've started doing ios development again. With that in mind I downloaded the latest version of XCode (5.02) and set about coding an app with ios7 as the target. Everything was going fine until I added a "webView page" to my app. I…
Stuart Fisher
  • 201
  • 3
  • 8
2
votes
1 answer

After attempting to create a UIWebView with a GIF in it, when webViewDidFinishLoad is called, the URL is always just about:blank. Why?

I'm trying to show a UIWebView with a GIF in it, but only once the GIF has loaded. I load the GIF as follows: self.GIFWebView = [[UIWebView alloc] init]; self.GIFWebView.delegate = self; NSString *html = [NSString…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
2
votes
1 answer

Catching JavaScript asynchronous calls with Objective-c

I catch javascript calls with UIWebViewDelegate. It looks like: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{ NSDictionary *dictionary =…
2
votes
0 answers

iOS app crashes randomly in WebCore

I have an iPad app that has UIWebview and it loads an URL. Problem is it crashes randomly and doesnt provide much info. I am using ARC. Any thoughts please? Thanks image 1 image 2 image 3
Paragon
  • 982
  • 2
  • 10
  • 37
2
votes
4 answers

Web view Showing old web pages in ePub reader

Im loading xhtml pages of a book in webview. when open a book and load its pages in webview for first time all works fine, but when i go back to home screen and load other books then the cover page and index page (cover.xhtml & index.xhtml ) for the…
Preetham
  • 125
  • 1
  • 11
2
votes
3 answers

How to call a function after UIWebView shouldStartLoadingWithRequest method call is finished?

How to call a function after UIWebView shouldStartLoadingWithRequest method is finished executing in iOS? I dont want to use performselector:afterdelay because that may not give accurate result while network is low.
Shaik Riyaz
  • 11,204
  • 7
  • 53
  • 70
2
votes
2 answers

iOS UIWebView page load observability

I would like to know for sure, when a page load is finished in UIWebView. I am aware of the "refcounting" approach between didStartLoad/didFinishLoad outlined in here and it kinda-sorta works for me, but i don't feel very confident about it. It has…
Pavel Zdenek
  • 7,146
  • 1
  • 23
  • 38