uiwebview

MPMoviePlayerController fullscreen movie inside a UIWebView

Hi, I'm having a problem with the UIWebView and MPMoviePlayerController: My UIWebView have a movie inside the html (it's a local html file), I'm using html5 and a video tag for the video. The problem is: the user can set the video to play inline, directly on the html or he can tap the fullscreen button, but I need to know if the video is...

Video/audio streaming does not stop even if UIWebView is closed - iPad

Hi I see this issue only on the iPad. The same things works as expected on the iPhone. I am opening the URL from my application in a UIWebView. If the URL is a normal web page, it works fine as expected. But if the URL is that of a remote video/audio file, the UIWebView opens the default player which is again good. Now when I dismiss ...

Page curl left and right for uiwebview with html contents

I am working on a epub book reader application and displaying the contents of book in web view and i want to give a horizontal page curl effect for that just a turning the page of a real book. I couldnt find any tutorials for that . Help is appreciated ...

iPhone SDK Auto scrolling UIWebView to a specific position

Hi, I Have a UIWebView that displays third party web page (not a page I can control) I need a way to scroll the content of the web view to a specific position in that page. Any idea how to implement it? Thanks. ...

iPhone Scroll images horizontally like in AppStore

Hi there, I was wondering if it's possible to create a HTML div container with some CSS magic that shows a horizontal scrollbar like the one with the screenshots on the iTunes preview on the web. I want this to work in Safari on the iPhone. e.g. http://itunes.apple.com/app/super-monkey-ball/id281966695?mt=8 I would like to use that to...

UIToolbar above UIWebView inside UIScrollView

I'd like to display a toolbar above a UIWebView but hide the toolbar until the person "pulls it down". The same functionality can be seen in Safari on the iPhone. When the page loads, the toolbar containing the address is hidden. You must pull it down. In Safari it's possible to scroll up and eventually see the toolbar or scroll down th...

Watching a YouTube clip with a UIWebView Causes Weird Results : No UIView Animations, Sound Stopped Working

Essentially, I'd like to embed a mobile website inside of my app which contains a list of YouTube clips. I've added a UIWebView to my ViewController, loaded up the site properly : - (void) setUrl:(NSURL*) newUrl { [newUrl retain]; [url release]; url = [newUrl retain]; [newUrl release]; NSURLRequest* requestObj = [NSURLRequest requestW...

Just-in-time invocation of Facebook login window from UIWebView

I have an app that presents a UIWebView pointing to my own server. I have a Facebook Like button on some pages inside the UIWebView. I have it working now, but the login screen is way too big for the phone screen. I would like to present a nicer login dialog such as the one in the Facebook iPhone API, and then continue back to the web...

UIWebView goBack crashing

I have the following setup webview = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].bounds]; Occasionally I issue the method [webview goBack]; and this sometimes brings my app down in flames with EXC_BAD_ACCESS (SIGBUS). I tried to wrap this around a @try: @try { [webview goBack]; } @catch (id theEx) { NSLog(@"%@"...

fill UIWebVIew TextInput with custom keyboard

For an app I am working on I want a custom keyboard to come up when you tap on an input field in a UIWebview, for example for UITextView i use this code : myText.text = [myText.text stringByAppendingString:@"a"]; but i don't know how can i fill a text field in UIWebVIew Any help would be very much appreciated; thanks! ...

Handling the rel attribute in a UIWebView?

Is there a way for my UIWebViewDelegate to see what the rel attribute of a clicked < a> element is? ...

Does [UIWebView loadRequest] block the thread?

I've read up on UIWebView and can't find a specific answer to whether or not it can block a thread when loadRequest is called (like NSURL can). I've heard that there is a specific UIWebView thread that all UIWebView's try to load using (and as a result that thread will be blocked with a slow load), but will there be any effect on the mai...

Word on HTML document point, using UIWebView, DOM and Javascript

Hey guys, How can I figure out which word is at the point where the user tapped on a UIWebView? I am able to detect the CGPoint for the tap (subclassing UIWindow like this), and I can actually get the DOM element on that point using javascript. But I know very little of javascript and DOM to figure out how can I actually get which wo...

iPhone UIWebView: loadData does not work with certain types (Excel, MSWord, PPT, RTF)

My task is to display the supported document types on an iPhone with OS 3.x, such as .pdf, .rtf, .doc, .ppt, .png, .tiff etc. Now, I have stored these files only encrypted on disk. For security reasons, I want to avoid storing them unencrypted on disk. Hence, I prefer to use loadData:MIMEType:textEncodingName:baseURL: instead of loadRe...

How to break up HTML documents into pages for ebook?

For an iPhone ebook application I need to break arbitrarily long HTML documents up into pages which fit exactly on one screen. If I simply use UIWebView for this, the bottom-most lines tend to get displayed only partly: the rest disappears off the edge of the view. So I assume I would need to know how many complete lines (or characters)...

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 go back to 2004 and use alert statemen-- oh wait they don't seem to work inside of a UIWebView either! The only thing I could think of is b...

UIWebView and JavaScript

I am finding a strange behaviour of UIWebView. In the delegate - (void)webViewDidFinishLoad:(UIWebView *)webView{ [self changeFont]; //[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(changeFont) userInfo:nil repeats:NO]; } In changeFont, I am calling the javaScript to change font of web page...

Best practices and Design Patterns for iPhone forms?

Part of the app I'm making requires the user to fill in a multi-page form, the contents of which will be saved locally (perhaps using Core Data). Are there any best practices for this? This form just includes text fields. I guess the options are UITextFields, or perhaps a UIWebView, with the fields as part of an html form? Are there are ...

UIWebView loading slow if using baseUrl

this works very well and fast but it does not load images if I give baseurl instead of nil. It takes few seconds to load. NSURL *myUrl = [[NSURL alloc] initFileURLWithPath:self.contentPath]; //NSLog(@”Content url is %@”,myUrl); NSString *string = [[NSString alloc]initWithContentsOfFile:self.contentPath encoding:NSASCIIStringEncoding er...

iPhone dev: Increase scroll speed in UIWebView?

I have an app in which I render local HTML files in a UIWebView. The files, however, are sometimes large, and getting to where you want takes a long time with the default scroll speed. Is there any way to boost up the vertical scroll speed of a UIWebView? ...