uiwebview

Whats the proper way to release a UIWebView?

I've been looking at many code samples on the internet. If I add an UIWebView from interface builder as an IBOutlet. Is it right that in the dealloc method of the controller, I need to do the following? [webView stopLoading]; webView.delegate = nil; [webView release]; and what about in the viewDidUnload method? ...

UIWebView - adjust on rotate?

Hello, I have a UIWebView which loads a url. In MobileSafari this webpage will adjust when the handset is rotated to the landscape position. In my UiWebView it just stays in portrait - is the a property I need to add to allow this to occur? Cheers! ...

UIWebView Xhmtl parse error but safari don't

Hi, I have an application showing standard html pages. I use UIWebView for html. When using safari for pages no problem. When I use uiwebview the page does not load. Error message(UIWebView) This page contains the following errors: error on line 230 at column 33: AttValue: " or ' expected Below is rendering of the page up to the firs...

iOS: Current touch location in a document opened in UIWebView or QuickLook

Hi there, I would like to write an iOS application that uses the native support to viewing multiple file types (e.g. HTML, PDF, Pages, Word) in a high level control such as UIWebView or Quicklook. Nothing too hard here. However I would then like to support selection of text, adding custom Context Menus to a selection and, at a minimum,...

Multiple HTML5 audio tags in Mobile Safari and UIWebView

I am having difficulties with pages that have more than one <audio> when I use the default controls. I have not tested creating custom controls in-depth yet. The custom control has a "Start" button that changes to a "Pause". OK that works fine to pause the audio. But, when you go to the second audio control on the page, it will neve...

Uiwebview makes app crash

I have a uiwebview in a nib file. Not connected to any outlets. Nowhere in my project have I done any thing with threads myself and also in the nib file are 2 uilabels. With the uiwebview in the nib the app crashes when the nib is loaded onto the screen if I delete the webview then the 2 uilabels appear as expected. This is the erro I ge...

How to avoid "Unable to read symbols for..." warning playing local UIWebView HTML files?

Hello everyone, I have a UIWebView that loads local HTML files. In one of those files/pages I have a video file embedded (with <video> tag) that plays correctly in both simulator and iPad, but in iPad I get this annoying warning message: warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2...

Programatically remove selection in UIWebView

Is there a way to programatically remove the selection box of text which the user has selection in a UIWebView? ...

Which text rendering framework should I use?

Hi all, I'm currently scoping out a project for the iPad which is rather text and font heavy. There are many pages of styled text, which also need custom fonts. I have toyed with the idea of simply rendering PDF or PNG files on-screen, but I think we need to be able to dynamically repaginate the text. We've used UIWebView in a previous...

Using UIWebView to render images instead of UIImageView in iOS uses much less memory. Makes sense?

I just figured out that - instead of using a UIImageView to show an image - I use an UIWebView, it uses much less memory. Does that make sense for anyone? What I did was to get an ordinary .jpg file with about 280kb in size and show it on a simple app with just an UIImageView. Looking at Instrument's Object Allocations tool, the applic...

stop loading action for button in web view is not working

when i tap a button in web view which is connected to action-"stop loading" of that web view is not working.. its not stops loading even after i press a stop button which is inteded for stop loading content .... ...

PDF in UIWebView

I am creating a magazine app. I am displaying each page of my magazine in a UIWebView. The webview doesn't fill the screen with the PDF though. There is a border around it. How can I display it fullscreen? ...

How to display a view when webview is touched continously for 10 sec?

Hi, I am displaying a pub or a pdf file in webview.But i am not able to detect the touch on the webview. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event above method is called when i touch any text of the pdf or pub file.How can i detect the click on the webview which is displaying a pdf or a pub file.Please help me...

iOS Mail Message View like UIWebView

The Mail Message View is as I see it a scroll view with a container, the container again has a header (including the from, date, and subject field) and the content webview. Now when you zoom in the webview, the header stays at the same place and size. Is it possible to do a view like this with the public APIs? I see as problem that th...

Getting Objective-C to talk to JavaScript with UIWebView

I am building an iPad app that loads local html files in a UIWebView. I have an int stored in a view controller that I want to use to determine what content to load into the html document. Additionally, I want to have clickable links in the html that create generate new, smaller UIWebViews on the highest layer, like a "pop-up". How doe...

NSString in webview iPhone and objective-C

Hi, i have an NSString and a webView in my project (Objective-C for iPhone), i have called index.html in webView and in index.html i have written my script (javascript) How can i pass the NSString as a var in my script and viceversa? http://developer.apple.com/library/safari/#documentation/AppleApplications/Conceptual/SafariJSProgTopics/...

How to implement custom select feature in webview in ipad?

Hi, I am displaying a pdf or a pub file in web-view.I want to implement custom feature of selecting the text and be able to copy and paste it.I want to select the text by dragging the fingers over it.I want to implement the same way implemented in opera app .For bringing the cursor at that point is there any default method.I detecting t...

How to display NSTimer for a webrequest loading time in xcode?

i need to display a timer in the background for the webrequest loading time in the minutes:seconds format.When the webrequest is loaded successfully the timer has to stop.My code is here: @interface TimerWithWebrequestViewController : UIViewController { IBOutlet UIWebView *webView; IBOutlet UILabel *lbl; int mainInt; NST...

Getting the bounding selection rectangle of UIWebView

How do we get the on-screen location of a selection in UIWebView? That is whenever the user selects some text and the system displays the selection box, I want to know what is the bounding coordinate of the rectangle in screen (or view) units. The reason for this that I want to display a UIPopoverController that has an arrow pointing to...

UIWebView stringByEvaluatingJavaScriptFromString woes.

I have the following code in a view controller. "pageDisplay" is a UIWebView. When I run the app in simulator, the HTML page comes up as it appears before the JS runs. The element with id "myHeader", an <h1> tag, is unchanged. -(void) loadPageToView:(int)pageNumber{ NSString *path = [[NSBundle mainBundle] pathForResource:[NSString s...