uiwebview

How to add controls beneath a UIWebView

What's the simplest, fastest, or otherwise (objectively) best way to add a couple of controls (e.g. some UIButtons) beneath a UIWebView? To be clear, I'd like to display a regular scrolling UIWebView, but when scrolling reaches the bottom I'd like there to be some UIControls after the web content. I'd rather not fake it with HTML/CSS co...

How to render text with clickable hyperlinks where you can control the action for click?

I'm tryiing to display some text in my app where there might be some URL in the text. I want the URL to be highlighted as hyperlinks and clickable. Furthermore, when it is clicked, I want to supply a callback where I can perform custom action. Of course the URL should be passed back to my callback so I know what to do with it (say open i...

load image in web view from a .html file

how can i load an image in iphone webview from a .html file? is there any one whoo help me???? thanks aamir ...

UIWebView scrolls jerkily

I need to use a website with quite a bit of content in my App via UIWebView. When I scroll the page in Mobile Safari everythings scrolls smoothly. Even if I scroll fast - the grey squared background appears but is rendered properly after a few moments (less then 0.5 seconds). The same page in UIWebView scrolls jerkily if scrolled fast ...

How to show UIWebView's scroll indicators

Hi, all I have UIWebView with some content And i need to make its scroll indicator visible for a short time (like [UIScrollView flashScrollIndicators]) Any ideas, how to do this? Thanks. ...

iPhone app crashes with mach_msg_trap in UIWebView using specific URL

Hi, When I load a specific web page using UIWebView in my iPhone app, it crashes with a mach_msg_trap error. Other websites load fine in my app. Try this URL as an example: [rssArticle loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.fan-f1.com/actualite-8387-F1-Massa-pourrait-quitter-lhopital-de-Budapest-dans...

Running JavaScript in a UIWebView before any other JavaScript is run

I have a UIWebView component that is going to load a webpage which might contain JavaScript. I want to run some JavaScript of my own before any JavaScript on the loaded webpage runs. I know I can use [myWebView stringByEvaulatingJavaScriptFromString:] on the webViewDidFinishLoad: delegate of the UIWebView, however this will only run my J...

iPhone|UIWebView: tabbed browsing by using NSArray?

I want to code a small tabbed browser just for the fun. However I'm not sure how the tabbed thing works. So this might be a noobish question: can I store a current webView in an array? using: [array addObject:webView]; and if yes how do I load it into the webView again? maybe using: webView = [array objetAtIndex:anIndex]; will it appe...

How can i create a uiview that looks like the view in mail.app

I need to create a uiview that looks like the one to display mails in the mail.app on iphone. It looks, that the view is something like a UIWebView, but there is a header-view to display From, To and Subject. This header is non-zoomable and scrolls only by the y-axis. Is there a way to create such a header-view in the UIWebView... // ...

UIWebView - How does tabbed browsing work?

Hi! I've a noobish question. How does tabbed browsing work? I mean that you save the current webView with it's content in an array and show it later. like you can read here http://www.iphonedevsdk.com/forum/iphone-sdk-development/24521-please-need-help-webview.html I made few attempts but no luck so far. as anyone a nice suggestion? T...

iPhone - tabbed browsing by storing webView in an Array/plist?

I want to build a tab-Browser and so far I've implemented everything (Bookmarks, settings...) except tabbed browsing. What I know so far is that I should store my webView in an array or a dictionary and then retrieve it. but it doesn't seem to work. this is what I've tried so far in various variations: [mainDrowser.webView removeFrom...

iPhone Navigation Problem

I have a tab bar app but the first tab is an image with a button on it. Touching the button is supposed to push a web view. The other tabs are plain web views. Those work fine but every time I push to a new view, it's blank (except for the back button at the top.) Questions: Do I need an xib for the pushed web view? Where does the ...

Use UIWebView with a local proxy server running on the iPhone

Let's say I have an iPhone app that has a UIWebView. Is it possible to write my own HTTP proxy server on the iPhone and then have every page that's loaded in the UIWebView go through this proxy? I guess there are two main parts: Write an HTTP proxy server on the iPhone Make sure all requests from the UIWebView go through my own proxy ...

UIWebView - capturing clicks

Is there a way to capture clicks on links within a UIWebView. I want to find out the address that the user has clicked, but not actually go to the page. Is this possible? ...

How to tell the difference between an iframe loading vs. entire page loading in a UIWebView?

In the [webView:shouldStartLoadWithRequest:navigationType:] event, how can you tell the difference between an iframe that's loading content vs. the entire page loading content? It seems like the both call this same event with the same arguments, the only difference being the URL that's going to be loaded, so there is no way to tell the d...

Edit text with in-line images on the iPhone

What is the best way of letting the user edit text with in-line images (or at least text with different background colours) on the iPhone? The UITextView doesn't support this. Edit: I just noticed that the e-mail client on the iPhone can edit text with images. So it's definitely possible. ...

How to save and view a pdf file through an app on iPhone?

Hi All, I am trying to save a pdf file in SQLite. I think it will be possible by saving the pdf file as blob. And the problem starts here, how to view that file within the iPhone app now? I know it can be done using this code:- @interface PDFViewController : UIViewController { UIWebView *webView; NSURL *pdfUrl; } ...

Send parameters to a local file in a UIWebView

I'm working on a native iPhone app. I am able to load a local file index.html into a UIWebView: [webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]]; The web loads fine. Now, I would like to load the web with some parameters, in the sa...

Is it possible to be notified when something is written to generalPasteboard?

I'm interested in responding to when the user performs a standard Copy to the generalPasteboard as part of the default UIWebView control. I'd like to take some action in response to this. Is this possible, or would I need to re-implement a custom copy control so that I can be sure to capture the event? ...

UIWebView not parsing xhtml files properly.

Hi all, this is my chapter1.xhtml file <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html [ <!ENTITY D "&#x2014;"> <!ENTITY o "&#x2018;"> <!ENTITY c "&#x2019;"> <!ENTITY O "&#x201C;"> <!ENTITY C "&#x201D;"> ]> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>Alice's Adventures in Wonderland by Lewis Carroll</title> <link...