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

UIWebView webViewDidStartLoad Sometimes Not Firing

I have a UIWebView in my view controller and have set its delegate to the view controller via code (i.e. not through IB). I have also setup the appropriate delegate methods: shouldStartLoadWithRequest, webViewDidStartLoad, webViewDidFinishLoad and…
Art Geigel
  • 1,915
  • 3
  • 22
  • 24
1
vote
2 answers

iOS gets UIWebView title and checks if it contains a string, but the if only occurs once

Ok, so the following code gets the title of a page loaded in a UIWebView and then checks to see if the title contains the word "table". If it does then it unhides the toolbar. If it doesn't then it hides the tool bar. This works fine at first when a…
Compy
  • 1,157
  • 1
  • 12
  • 24
1
vote
2 answers

Hiding elements from UIWebView

I have a UIWebView in which I load a NSURLRequest. I do not have full control over the html for the page shown but I do know it will contain an element which has an id I happen to know beforehand. Let's say it is submmit_form_button. I don't want…
Cezar
  • 55,636
  • 19
  • 86
  • 87
1
vote
2 answers

UIWebViewDelegate functions have not been called

.h file: @interface MyView: UIViewController { UIWebView *webView; } .m file: -(void)viewDidLoad { CGRect webFrame = [[UIScreen mainScreen] applicationFrame]; webView= [[UIWebView alloc] initWithFrame:webFrame]; …
fmchan
  • 760
  • 1
  • 11
  • 29
1
vote
2 answers

UIWebView - Load local audio file into html via UIWebView

I am trying to send the path of a LOCAL mp3 file to javascript and from there creating an audio tag populated with the source. When I try this however, I am presented with a "cannot play audio file" message. The file itself is coming from the app…
Duran
  • 38
  • 6
1
vote
1 answer

UIWebView loading some black screen in the right side of Landscape View

I am facing this weird problem not in a normal behavior. I am loading the images from a url in the web-view. If I change the Orientation from portrait to landscape and landscape to portrait no problem. But In Portrait If I do some zoom-in , zoom-out…
Cyril
  • 1,216
  • 3
  • 19
  • 40
1
vote
1 answer

UIWebView does not load or appear when created programmatically

I'm debugging a custom UIViewController subclass, which wraps a UIWebView so that we can handle custom URLs. I seem to have no problem adding the relevant views to the hierarchy, but when I call loadRequest: on the webview, it displays nothing. It…
Arkaaito
  • 7,347
  • 3
  • 39
  • 56
1
vote
2 answers

UIWebView will not loadRequest inside a separate class file

I have a UIWebView that is successfully being created dynamically from an included class file (I think... there are no errors being spit out). My function that creates this webview in the Foo.m class file is: +(void) openWebView { …
ccagle8
  • 308
  • 1
  • 2
  • 12
1
vote
1 answer

Presenting ViewController from UIWebView delegate

I have a UIWebView with a delegate id. When I click on links in the UIWebView, I get the NSURLRequest object in the callback: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request…
user517339
1
vote
0 answers

How do you pass Javascript touch events to Objective-C UIWebView native code?

I am aware that the UIWebView contains a method that it calls before a link loads, namely webView:shouldStartLoadWithRequest:navigationType:. Using this, native code in the UIWebView delegate can intercept load requests and decide what to do about…
1
vote
1 answer

UIWebView delegate not working the second time

I have an rss feed which returns a json containing a title, short text and full-size text. The title and part of he short text is displayed in a TableView. I have 3 controllers with 3 views. View 1 displays a TableView containing articles from the…
1
vote
1 answer

UIWebView interface builder connecting issues

my .h file looks like this @interface EventCell : UITableViewCell { UILabel *TitleLabel; UILabel *DateLabel; UIWebView *LocationLabel; } @property (nonatomic, retain) IBOutlet UILabel *TitleLabel; @property (nonatomic, retain) IBOutlet…
CQM
  • 42,592
  • 75
  • 224
  • 366
1
vote
1 answer

uiwebviewdelegate not called from non-visible uiwebview

I am trying to avoid the blank white window that shows while a UIWebView loads content. Instead of putting a background on the UIWebView, I'd like to just put up a HUD on the current window and then push the new uiviewcontroller that contains the…
michael
  • 241
  • 1
  • 5
  • 12
0
votes
3 answers

Weird: Why my WebView Project works with iPhone but shows blank with iPad?

Update: I have recreated the same steps with a new project targeting iPhone and this time it works; I tried again with iPad only project it doesn't! That's weird isn't it ? Update2: I found why. I saw blank because I put default webview size control…
user310291
  • 36,946
  • 82
  • 271
  • 487
0
votes
1 answer

Changing tel: property working in simulator but Not in Device

I have changed tel property to do some string manipulation instead of calling that number. its working in simulator but when i do it device, its still trying to call. i have tried with webview, textview, button still same problem :( Any idea? Let…
cnu
  • 815
  • 10
  • 22