Tagged Questions
18
votes
5answers
14k views
Html5 cache manifest in a UIWebView?
I'd like to be able to use the html5 cache manifest to store images locally on an iPhone that is visiting the page via a UIWebView within an app.
I've set up a sample that I think conforms to the ...
22
votes
5answers
14k views
iOS JavaScript bridge
I'm working on an app where I'm going to use both HTML5 in UIWebView and native iOS framework together. I know that I can implement communication between JavaScript and Objective-C. Are there any ...
22
votes
5answers
13k views
What are some methods to debug Javascript inside of a UIWebView?
I'm trying to figure out why something with Javascript isn't working inside of a UIWebView. To my knowledge, there is no way to set a breakpoint inside of XCode for a js file. No problemo, I'll just ...
2
votes
3answers
3k views
How to send events from HTML running inside a UIWebView to native Objective-C code?
I want to integrate a full HTML framework (ie HTML/CSS/JavaScript) inside an iOS app and make the UIWebView in charge of running the HTML content being able to communicate with the rest of the native ...
2
votes
2answers
2k views
playing a local video in a uiwebview
i load a local html file into an ipad application:
NSURL *baseURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
NSString *path = [[NSBundle mainBundle] pathForResource:@"lieferant1" ...
4
votes
1answer
954 views
Preventing annoying HTML5 geolocation alerts inside UIWebView
Whenever an script requests the geolocation using HTML5's geolocation API, the UIWebView asks for a permission to use the iOS location services.
This is pretty annoying, specially when you load ...
1
vote
0answers
2k views
HTML5 AppCache in UIWebView
I'd like to make use of appcache in my native application on the iPhone. Though Mobile Safari supports appcache it seems that the UIWebView that you can embed in an application does not.
I know with ...
1
vote
0answers
839 views
Linking external JS in UIWebView in iOS 5
I am loading an html that includes an external JS like this,
<script src="external.js" / >
This used to work fine, till iOS4.3, but suddenly stopped working in iOS5.0. Based on my ...
0
votes
2answers
708 views
Play embedded video in UIWebView with HTML5
I'm actually trying to play a local video into an UIWebView, with HTLM5.
What I do actually is this :
NSString *embedHTML = [NSString stringWithFormat:@"\
<html><head>\
<style ...