uiwebview

By Clicking an html link i want to open that url in browse?

I am opening an html page in web view and By Clicking an html link i want to open the given link in to web browser and my application should close. ...

uiwebview memory leaks

i am getting following memory leaks for webview initWebUILocalStorageSupport MobileQuickLookLibrary() and here is my code, i dont know what i am missing. NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0f]; [theRequest setHTTPMethod:@...

How do you put a UIWebView somewhere other than MainView.xib?

Hello, I've been trying to put a UIWebView into my app, which is tableview based. When the user selects a row, I want the new xib to load, but this one with a UIWebView on it. From all of the tutorials I've seen, you can only put a UIWebView on the MainView.xib. Can someone please tell me how to put a FUNCTIONING UIWebView somewhere othe...

iphone touch offset in uiwebview

I am currently experimenting with canvas drawing function in a uiwebview.Its a simple app that allows you to finger paint on the Iphone.Can someone point me in the rite direction on a problem I'm having.I need to be able to offset the touch so you can see what your painting instead of your finger being in the way.Its built on Html,javasc...

How to insert HTML into a UIWebView

I have HTML Content which was being displayed in a UITextView. The next iteration of my app is display the HTML contents into a UIWebView. So I basically replaced my UITextView with UIWebView. However I could not figure out how to inset my HTML snippit into the view. It seems to need a URLRequest which I do not want. I have already ...

iPad UIWebView PDF rendering is giving me weird visual artifacts

I am having some difficulty using a UIWebView to render PDF files on the iPad. Everything works fine in portrait mode, but turning the device to landscape produces strange visual quirkiness. Zooming in (but not out) even the slightest will correct it, but obviously that's not an ideal workaround. The issue occurs with any PDF file (I ha...

WebView not responding when called from a method

I have an app with tabbar and webview. I'm trying to make the app come back to default url each time user taps the bar. Right now I'm intercepting taps and launching a method, however it's not affecting my webview (it's not loading the page). The method works properly when called from the class, but not when it's called from my app deleg...

UIWebView loads a local file for a long time

I have a UIWebView which loads .rtfd.zip files like this: -(void)viewWillAppear:(BOOL)animated { self.title=@"Title"; if(rowPosledovatelnosti==0) { [self loadFile:@"PosledovatelnostiObzie.rtfd.zip"]; } if(rowPosledovatelnosti==1) { [self loadFile:@"Arifmeticheskaya.rtfd.zip"]; } if(rowPosledovatelnosti==2) { [self loadFile:@...

Should I use UIWebView or UITextView to display text in an e-book reader app?

I want to make an e-book reader iPhone app. Should I use UITextView or UIWebView to display the text? Which control is used by other e-book readers? ...

Resize images in UIWebView to viewport size

I'm displaying HTML with some images inside a UIWebView in my iPhone App. When the images are wider than the viewport of the iPhone I get horizontal scrollers which I don't want because its mostly about the text not the images. Is there a way to resize images displayed inside the UIWebView according to the width (best: even if the devi...

UIWebView not loading URL

I'm having trouble getting a UIWebView to load a URL that I'm sending to it. Before I get into my code I was wondering if URL has to start with "http://" or can it start with "www."? I'm using an IBAction to push a UIView on to the stack: (IBAction)goToWebView { WebViewController *webController = [[WebViewController alloc] initWithNib...

holding session state with zend framework in iframe?

I have a php site optimized for iphone, its currently running inside of an iframe in a uiwebview objective c wrapper. Everything currently works except for the sessions inside of the iframe, Im assuming this is due to the cross domain issue with iframes and sessions? my solution is to save the sessions to the db. Is this the best solutio...

UIWebView and Gesture Detection

HI There, I have a View Base Project application and one of the viewcotrollers simply manages a view that houses a UIWebView. I need to be able to detect tapping events on the UIWebView. I've tried suggestion here but cannot get it to work. http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/ Would anyone hav...

Display "custom" view (various images, various text). Should I use UIWebView?

First: No, none of the content should be loaded from the web. All content parts are shipped with the main bundle. I have n images and mass of text (including lists). Instead of building all view parts programmatically in objective-c if was thinking of using an UIWebView and build "only" the HTML dynamically. Does anything speaks agains...

UIWebView comparing current and defined URL's with a loop depending on result

I am trying to compare the current url in webView with a defined url say google.com so in theory.. NSURLRequest *currentRequest = [webView request]; NSURL *currentURL = [currentRequest URL]; would give us our current url... NSString *newurl = @"http://www.google.com"; this would give us the compared to defined url while (!cu...

UITableView's, UIWebViews and the scrollsToTop Property = Trouble

My app has a UITableView. That UITableView has a header view, which is a UIWebView. By default, scroll views have their scrollsToTop property set to YES, which will enable the user to tap the status bar to scroll to the top of the scroll view. When there are two scroll views embedded in one view, that both have their scrollsToTop prope...

How to simulate a mouse click on a UIWebView in Cocoa for the iPhone?

I'm trying to setup automated unit tests for an iPhone application. I'm using a UIWebView and need to simulate clicks on different links. I've tried doing this with JavaScript, but it doesn't produce the same result as when I manually click on the links. The main problem is with links that have their target property set. When you manual...

UIWebView paging / line cut off

Hi, I am trying to page a webpage, so disable scrolling, then the second page is the same webpage scrolled down the page height. The problem I have is that the bottom of the first page often has 1/2 a line of text, then the second page has the bottom half of the line. Is there a way to ensure the entire line falls on one of the pages?...

How to draw underline text with UIWebView

Hi I am new to IPhone paltfom. And I wonder how can I underline a text with UIWebView? I know this is quite simple, but I couldn't get any clue from the menual can anybody show me some code snippet? The text should be a passed-in parameter. thank you very much. ...

passing text from an Array to UIWebView

hello again , i want to pass some html i have saved as string and stored in an array into a UIWebView. can anyone help me on how to do this because all i can find is how to grab it from the internet rather than already stored data Thanks ...