I have a NSURLCache that simply logs cachedResponseForRequest and storeCachedResponse calls.
It seems that UIWebView will call cachedResponseForRequest for every request, but storeCachedResponse will only be called for the top-level page, i.e. not for any css/js/etc. specified in the html.
Is there any reason why this might be (not) h...
Hi,
When i click a link in the uiwebview is that possible to load a uiview ? Is there a way to transfer control from uiwebview to uiview.
...
I currently have a view with for buttons, and would like to be able to launch UIWebview with a specific url for each different button.
I currently am able to launch safari externally with the urls.
I know I can have the code to show the UIWebview within each button, and can set the url withing the viewDidLoad of the UIWebview, but I n...
I want to modify the default options to just Copy and Highlight. I looked through the documentation for UIMenuController but still couldn't figure out. I'm new and learning. Please point me to the right path.
...
I have one view holding a list of videos(buttons which can be clicked, each hold a url) which currently bring up a new view which holds the UIWebview, the only problem is I cant pass the url to the webview depending on which button was clicked.
At the moment I just get an empty UIWebview.
How can the url string be passed to the webvi...
I can get all 5 videos working on my computer's browser, but the fourth video fails on my iPhone (via Safari).
http://basenycapp.s3.amazonaws.com/stream.html
I think it's because the youtube id has an underscore in it. For each video, I'm embedding the youtube videos with the following:
<object width="70" height="60"><param name="movi...
How do you load the contents of a local html file similar to this (simplified)
<html>
<body>
some text and <p>'s and stuff here
</body>
</html>
into a UIWebView on the iphone?
The html code is stored in a .html file and the UIWebView is called contentLabel
I have tried :
[contentLabel loadRequest:[NSURLRequest requestWithURL:[NSUR...
Hi,
Is that possible to display options in uiwebview links. When you touch and hold a 3 options come up, (open, copy and cancel). Is there a way to add a option say "open in safari browser", so that the user can open it either in safari or in the app's embedded browser ?
...
Hi,
I am using the UIWebView on iPad, which I initialize by the code below. The problem is that the view is never displayed on the top of the page just under the Status bar, but there is another 44px space (filled with black color) - for Navigation Bar, which I do not want to display. Any hints how I can make the UIWebView be displayed ...
I am currently displaying text in a uiwebview. However, I would like to allow a user to select text and perform some action with the selected text (google it). Apple has done this sort of thing with iBooks. When you click on a word you can choose to look up the word in a dictionary. How can I do the same thing with Webview?
UIMenuContro...
Okay, simple enough.
I'm coding up a simple web view, and I'm providing a few Safari-like controls for navigation.
Play seems to be the obvious choice for the forward button, but I'd like to have a Back Button as well, as seen in several Apple and third party apps.
Is there a way to invert the icon, so that it points backwards, or are...
Hi everyone, I have an iOS app that displays content from a sqlite db in a UIWebView (theres a reason I am using the UIWebView over say a ScrollView, and it is for some CSS). I want to add a feature to my app that will make it easier to read from. I want to have a button, that initiates an autoscroll function where the UIWebView begins t...
ok rather than try to explain my problem in text, watch this little video i recorded
http://www.youtube.com/watch?v=fwb55jnZI6w
and here is the code for the detail view controller (the page where the webview is)
detailViewController.h
#import <UIKit/UIKit.h>
#import "MWFeedItem.h"
@interface DetailViewController : UIViewController <UI...
I have a html page with iframes where part of the page is scrollable while other parts are not.
Is there a way to display this in a UIWebView and allow scrolling these iframe sections?
So far I see that only the entire page is scrolling.
...
Can a view controller interact with the HTML elements contained in a web page that's rendered by a UIWebView? Is there any access to the DOM, like there is in a C# form and a contained WebControl?
...
I am working on an iPad app which has an embedded HTTP server listening on a high port, and I am loading pages from this HTTP server using a UIWebView.
For the functionality of the app, it is important that this works when no network connection is available.
The UIWebView is loading URLs of the form http://localhost:port/path
When I d...
I have code that works great in 3.2 and earlier. The javascript from my UIWebView Load - never seems to execute... Any idea what changed with 4.0 that might cause a problem...?
my current code has a bunch of javascript in the page to load and format - one of the things is a variable that indicates the javascript prep is done... I am ch...
Hi all,
I need to cache a web-sourced image (i.e. not bundle sourced) that is going into a webview. Normally I'd just request the image and convert it into base-64 and stick it in the HTML, but if I have 100 images in line I can't quite do that.
So I searched around a bit and found a way to grab the image request by subclassing NSURLCa...
In trying to figure out the scroll position for a UIWebView, I'm attaching a listener in the HTML that will call back to the main app. I attach the javascript listener like:
window.onscroll = function reportScroll() {
var sY = window.pageYOffset;
alert('Scroll pos: '+sY); // Would evetually trigger a URL or something
}
This e...
I know that I can run a line of javascript code after the page loads on an iPad with UIWebView (which is what I am using), but I do not know what I could type to go through and remove all of the tags. I also would like to be able to do this to only certain parts of the page e.g. only remove tags within a certain tag.
...