HI I have created a NSMutablArray and add 8 objects to it in the RootViewController. I am displaying the array in the tableview.
Whenever i click on the cell with a certain name, i want to pass a URL to the webview which is currently part of anothe DetailViewController.
here is some code that i am trying to make it work from rootViewCon...
I want to disable hyperlinks in UIWebVIew after the initial page loaded without disabling the scrolling feature. That is, I should have user interaction enabled.
...
Hi,
With a webview is it possible to set up a simple 'Back' button (either in a navigation bar or a top toolbar) that doesn't show the back button on the first URL of the WebView - and only appearing on a second URL to get back to the first?
Unless I'm getting getting this wrong, in a lot of hybrid native/web apps such as News apps, yo...
I would like to diplay HTML in iPhone UIWebView. My HTML looks like
text
text
<img src.../>
text
text
How can I cause the component (via JavaScript or Objective C) to fit the image size to a window - i.e text size will remain the same but image will be reduced/enlarged proportionally to prevent horizontal scrolling ?
Thanks
...
I have an app with a table view at the root in a navigation controller, and on selection of a table cell it displays a new view controller that contains only a UIWebView (with a toolbar and a navbar).
Depending on how I present the new web view, the feature where the user can tap on the status bar at the top and have the webview scroll ...
I have a UIWebView (webview) with one link in it. I have implemented UIWebViewDelegate for this class. When I click the link, the page loads but I get an error.
- (void)viewDidLoad {
[super viewDidLoad];
webview.delegate = self;
NSString *html = @"<html> \n"
"<head> \n"
"</head><body> \n"
"<p><b><a href='http://developer.apple.com/mac...
I have done google map in UIWebView and it works perfectly with routing stuff and all. But now i want to load some other map into the WebView and get all the features that i get from google maps. How can i do it?
For eg: I want to load this one to the UIWebView. http://stage.discoveritalia.it/conbipel/ .This is an italian map. I want to...
How can I control the title which appears in the UINavigationController with a web page which appears in a UIWebView?
I am trying to get the UINavigationController title to reflect the title of the web page.
...
I have a simple UIViewController with just a UIWebView. The UIWebView should take all available space to show the content of an url.
I would like to reuse this ViewController in various places. In some cases it will be pushed into a NavigationController, in some it will be shown as a ModalViewController. Sometimes it might be inside a T...
In my iPhone app, I have a UIWebView where I'm loading a local html. Everything works up just fine, but now I want to be able to handle local links (to footnotes): when I click on a local link, I want to be able to jump to the footnote refered by it, then be able to come back.
<a href="#tofootnote">jump to footnote</a>
I handled this...
I have some code that needs to run after the a UIWebView finishes loading a document. For that I've set the UIWebView's delegate to my controller, and implemented the webViewDidFinishLoading method.
This gets called multiple times, depending on the type of page to load. I'm not sure if it's because of ajax requests, requests for image...
I have a really long UIWebView, and I need to add a way for the user to tap the UINavigationBar to scroll to top (something like the Facebook app, where it's little glow when you tap).
How can I do this?
...
I have the following subview chain:
UIViewController.view -+
|-> UIView (subclass) -+
| +-> UIToolbar
|
+------------------------> UIWebView
In the subclass, I override its -touchesEnded:forEvent: method in order to hide a...
Hi All,
Any idea how to read a .ppt file in Cocoa Touch ?
I tried to load the contents of the file in UIWebView but it didn't work.
Here is the code :
[aWebView loadData:[NSData dataWithContentsOfFile:filePath]
MIMEType:@"application/vnd.ms-powerpoint"
textEncodingName:@"utf-8"
baseURL:[NSURL fileURLWithPath:f...
I am using this to prevent the app from opening the youtube app and instead plays the video whilst staying inside my app.
It works fine and all but it's a bit slow with loading it's date (they're inside a tableview, each cell for about 15 atm~).
The moment when it suddenly loads everything correctly is when this error has been passed i...
Hi,
In my application I have a UIWebView that is able to play Youtube videos normally, but I'd like to play some videos from a website other than Youtube.
If i try to play those videos in the iPhone Safari browser it opens in the same way that YouTube videos (fullscreen mode, showing the player), but that doesn't happen in the UIWebView...
I am loading a UIWebview and requesting a URL that can take some time to finish loading. The request starts and begins to receive data. However, it doesn't appear that the request finishes. The webViewDidFinishLoad never triggers nor does the webView didFailLoadWithError: callback.
Does a timeout of a NSURLRequest only occur if ther...
I have specified dataDetectorTypes on a UITextView so that URLs open in Safari when touched.
Is it possible to intercept this behaviour so I load the URL in a UIWebView instead? Or would I have write my own URL detector code to re-route this?
...
I want to use stringByEvaluatingJavaScriptFromString to run a javascript which references local files (in this case css files, but potentially js files too) which are on the device (in the Documents folder I guess?)...
NSString *theJS = [[NSString alloc]
initWithString:@"javascript:(function()
{the_css.rel='stylesheet';
the_css.href='...
hello ! can someone tell me how i can select something in an uiwebview with code ?
...