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

iOS 7 UIWebView inconsistent Loading

In my project I have 2 UIWebViews that are IBOutlets and created in the main.storyboard. One I load by calling a method on ViewDidAppear. It appears perfectly and hits all it's delegate methods. We will call this ViewA The other is supposed to be…
Conor
  • 1,007
  • 1
  • 10
  • 16
0
votes
0 answers

Modifying NSHTTPResponse given to UIWebview

I have seen all sorts of questions about modifying NSURLRequest but not NSHTTPURLResponse. Our scenario is that: A web page that is loaded in a UIWebview will make an HTTP request. This is typically a form post in a hidden iFrame or AJAX request.…
0
votes
1 answer

Ios webview calling javascript function wont work

My objective-c code looks like this: NSString *test = [NSString stringWithFormat: @"testFunction(%@)", details.name]; NSString *userName = [webView stringByEvaluatingJavaScriptFromString:test]; NSLog(@"Web response: %@",test); This prints out…
Lewis
  • 159
  • 10
0
votes
1 answer

Using PhoneGap Cleaver in iOS to override method

I am using PhoneGap 2.3 - Cleaver for iOS. How can I override shouldStartLoadWithRequest, webViewDidStartLoad, webViewDidFinishLoad function? If I add "viewController.webView.delegate = self" to viewDidLoad, the functions above can be called but the…
red23jordan
  • 2,841
  • 10
  • 41
  • 57
0
votes
1 answer

UINavigation Controller and UIWeb View Navigation

I am writing an Xcode Application that has the following structure: UINavigationController UITableView Option 1 Something else Option 2 Something else Option 3 UIWebView Within my web view I have an internal web page with a…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
0
votes
2 answers

Run JS in iOS webView every time loading a new page

For example, I want to run this part of code every time user click a new link in my UIWebView, NSString* js = @"var meta = document.createElement('meta'); " "meta.setAttribute( 'name', 'viewport' ); " "meta.setAttribute( 'content', 'width =…
nilveryboring
  • 653
  • 1
  • 9
  • 18
0
votes
2 answers

How to determinate stringByEvaluatingJavaScriptFromString evaluation porcess complete?

I'm reading the html file into the UIWebview. In the webViewDidFinishLoad I'm doing javascript function for horizontal scroll. Below code works fine. But i cant predict when javascript function finish. in the visible webview first load the html file…
Senthilkumar
  • 2,471
  • 4
  • 30
  • 50
0
votes
1 answer

Putting links in contact in UIWebView and display on different view controller

I have a view controller in which I have created a simple contact app using Apple's addressbook, I have created another view controller which has a web view that create and displays all contacts and phonenumber when a user click on generate button.…
Francis F
  • 3,157
  • 3
  • 41
  • 79
0
votes
3 answers

UIWebView Delegate : webViewDidFinishLoad not being called

I try to load an array of UIWebView with delegate associated. for (GDataXMLElement *post in array) { NSString *msg = [[[post elementsForName:@"message"] objectAtIndex:0] stringValue]; UIWebView *web_view = [[UIWebView alloc]…
Raptor
  • 53,206
  • 45
  • 230
  • 366
0
votes
1 answer

Detect when multiple UIWebViews on the same view have all finished loading?

Context Single ViewController Two UIWebView objects as subviews of a UIScrollView are in this ViewControllers view The ViewController is the delegate of both UIWebViews The delegate method - (void)webViewDidFinishLoad:(UIWebView *)webView gets…
drc
  • 1,905
  • 4
  • 22
  • 28
0
votes
0 answers

How to read the jsonstream from uiwebview?

When the server gives the response JSON the webviewdidfinishload method is not get called and I did'nt know how to read this steam from the server. For reference see screenshot: http://www.flickr.com/photos/97186141@N05/9388886673/
0
votes
0 answers

How to Load image in uiwebview?

I am doing following steps to display a html file in uiwebview. 1.unzip the .epub file, from that get html file content in a array NSData *data=[NSData dataWithContentsOfFile:filepath]; [arrayDatacontent addObject:data]; after this process…
Senthilkumar
  • 2,471
  • 4
  • 30
  • 50
0
votes
2 answers

Javascript alert cause freeze. ( With AFNetworking and native code callback)

I want to do following list. use UIWebView Button on webview is tapped , then exec native code(http request) and get Response. I can get Response. But, It's not work 'alert' correctly in callback function(freeze). Why do like that? Thank…
sekitaka
  • 1,010
  • 2
  • 14
  • 30
0
votes
1 answer

IPhone UIWebView Application wit AJAX

I'm doing now an iPhone App that encapsulate a web Site inside a UIWebView, the first request is made by the iphone app and it activate the "webViewDidFinishLoad" delegate, but when i press on one of the buttons in the web application inside the…
Shimon Wiener
  • 1,142
  • 4
  • 18
  • 39
0
votes
1 answer

Linking button to another viewcontroll (uiwebview)

can anyone help? I have two different view controllers in my storyboard. First controller has buttons which I want to connect to a second controller which is a uiwebview, for it to open a website, I know how to make the buttons open the website in…