uiwebview

Adding a model layer (with caching) for UIWebViews; trouble with UIWebViewNavigationType and shouldStartLoadWithRequest

I'm tinkering with adding a model layer to an iPhone application so that I can serialize/prioritize HTTP requests and selectively cache responses. Thanks to UIWebViewDelegate, the following method makes this fairly straight forward (in theory): - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navi...

Button events inside UIWebView

Hi All, I want to have a on top of uiwebview, which will scroll out of view as I scroll webview downward. The problem is I am not able to raise/handle the button touchupinside event from the viewcontroller. My guess is webview is eating the event. How can I make the button raise events? One solution is to have a subview containing the bu...

UIWebView custom font

In my case i try to use font Futura in UIWebView with method loadHTMLString and web tag but the problem is futura do not show in page. I think it's custom font, and i downloaded Futura.ttf but how to use it? In other forms in labels futura present normal. Please help. ...

UIViewControllers and UIWebView

Hi guys, I am a newbie at iPhone development and have a question, which may end up helping understand this concept in general. Basically, I have UIViewController which loads up a view with a bunch of stuff. Now I want when a user clicks on a button, to load up a different view, which happens to be a webView. Now, I want the weview to lo...

iphone uiwebview array

i want to make an tabbed browser for the iphone.. how do i store uiwebviews in an array and open it with an button like in safari? ...

Display image blobs directly in UIWebView?

I have a bunch of images stored in my database as blobs that I need to include in a UIWebView. I'd like to do this directly -- without first saving them as temp files. Is there a way to display images in UIWebView with raw data instead of a URL? ...

Why would a link in a UIWebView leave a gray box behind?

I have a UIWebview that I am loading with custom HTML using loadHtmlString. My HTML has a link that I intercept when tapped so that I can take control and reload the UIWebview with a different HTML string. The code works, but the area where the link text was located is replaced with a gray rectangle that is visible when the new stri...

Tap highlight on link does not disappear after tapping

I have a UIWebview that I load with loadHtmlString. The html has some links in it, and when they are touched I intercept that and do another loadHtmlString. This all works fine except that the gray box, (the tap highlight), remains on the screen after my next loadHtmlString call. Why is this happening? What do I need to do to cle...

Is this considered as using private functions in iPhone dev, and thus illegal?

I'm trying to disable scrolling for a UIWebView and the only way i found is using this way: #import <objc/runtime.h> id scroller = [[Webview subviews] lastObject]; int count; Method *method = class_copyMethodList([scroller class], &count); int i; for (i=0; i<count; i++) { if (strcmp(method_getName(method[i]), "setScrollingEnabled:"...

UIWebView With PDF

Hello Guys, i'm displaying a PDF file using UIWebView, and i want to do 2 things I want to make the page fit the phone screen without the user has to double tap to do that I want to remove the margin with gray shadow around the displayed PDF Thanks for helping ...

iphone UIWebView store the current scroll position ?

Hi, i want to store the current scroll position of a webView and when i launch the application again . i want to restore that scroll position again .. How to do that ??? ...

Loading url's in UIWebView

Hello, I have a UIViewController with a webView in it. When tapping on a link, I would like to push a new controller and open the url in a new webview. Is that possible? Thanks in advance for your help. ...

Detecting taps inside a UIWebView

I have a UIWebView with a navigation bar and toolbar that I want to auto hide. I'm doing that already, but I want to show them when the user taps on the UIWebView. My problem is that the UIWebView captures all the touches events, and I cannot intercept the one I need. Is there any workaround for this? ...

Memory leak UIWebView when loading from file instead of URL?

I have a UIViewController that contains a UIWebView (OS 3.0). If I load it with file data, as soon as the 'Back Button' is hit and the view is dismissed, I'm seeing EXEC_BAD_ACCESS error with WebCore object releasing 'SharedBuffer' - (void)viewDidLoad { NSString *htmlFile = [[NSBundle mainBundle] pathForResource:fileName ofType:@"ht...

Weird behavior of UILabel

Hi, I have a UILabel Outlet, and everytime I access its text property with multiple characters, then it will crash and gives me EXC_BAD_ACCESS. Its very weird and I can't find any solution for this issue. Thanks. sasayins ...

didSelectRowAtIndexPath when uiwebview fills cell?

My controller inherits UITableViewController: The cells of the table are custom and are 100% filled by a UIWebView I would like to have the user click anywhere in the UIWebView and have the UITableViewDelegate's function notified: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath Is the...

iphone - UIWebView Problem

Hi , I have created a nib file and added a UIWebView. i created an IBOutlet and attached web view with that outlet. till here everything is fine . now when i set the delegate of that webview to self in ViewDidLoad, and implement two of its delegate methods. the application crashes, i m not writing anything in the methods , i have just...

iphone - IUWebView javascript scrollIntoView()

I have a simple UIWebView with simple HTML. At the end I place a javascript function: <script language='javascript' type='text/javascript'> var x = document.getElementById('SEARCHRESULT'); if (x != null) x.scrollIntoView(true);} </script> To force the view to scroll to a region. It doesn't seem to work. Does the UIWebView not support...

UIwebView offset setting problem

I am using a UIWebView(loaded with a HTML file) and i want the offset of the scrolled position and the offset should remain constant if i change the text size.I want to store the previously scrolled position even if i change the text Size . HOw to do this???? ...

Avoid main thread freezes when UIWebView tries to blockingly lock the web thread

All UIWebViews share a single web thread. When one of them is init-ed, removed from superview etc., they will attempt to lock the web thread from the main thread in a blocking fashion, thus temporarily freezing the run loop of the main thread. If the web thread is busy, e.g. while doing a long synchronous XMLHttpRequest, this may block...