I have a problem when loading a text file with unicode content into a UIWebview.
How can I set Encoding for the UIWebview using loadRequest like this:
[myWebView loadRequest:[NSURLRequest
requestWithURL:[NSURL
fileURLWithPath:tempFilePath]]];
This code seem to work but I can't use it to open MS Office file:
[myWebView load...
There's a known problem with embedded UIWebViews that if you load data into them using loadHTMLString or loadData, the canGoBack/canGoForward properties and goBack/goForward methods don't work. These only work when using loadRequest.
Since Safari's normal app cache doesn't work in embedded UIWebViews, creating a native app that effecti...
We are trying to write a training manual application for the iPhone. On the top half of the screen is a diagram of a car engine, on the bottom half is some text. At the user repeatedly hits a "next" button, we highlight different parts of the engine, and in concert we highlight different parts of the descriptive text below.
We basically...
Hello Guys,
i'm developing an app that requires caching web pages (completely) along with their CSS files and images.
so after saving the entire Html of the page ( going through the links to store each file along with the Html file )
later on, while viewing the html file offline, UIWebView takes a long time to load the page, given tha...
Hey folks I was wondering if anyone can tip me on a painless way of invoking a modal view controller from a web link in a UIWebView. Is it possible to do this?
I want the modal view controller to still be a part of the app as opposed to closing the main app and using a helper application instead.
Any help would be greatly appreciated...
Hi guys
I have a UIWebView and when I press a textual link (for at least a second) some kind of UIActionSheet appears with 3 buttons (open, copy and cancel) - Is there a way to prevent it from appearing?
Thanks
...
I want to be able to launch a video from an link in html that I load into a UIWebView. The video launches just fine, but when either I hit the DONE button on the video player or when the video ends, it returns to the UIWebView, but the html that I had placed on the UIWebView is gone (including the a href link).
Has anyone else ran into...
I want to style a web page meant for the desktop so that it is presentable on a UIWebView on iPhone. I do not have access to the web server from which the pages originate. I would like to do this by changing the href attribute of the <link> stylesheet element programmatically.
I do the following with my IBOutlet UIWebView *webView.
NSS...
Short question: What does an exception's "sourceID" refer to, and how can I link it to the relevant source string/file?
Longer story:
I am running Javascript code in an iPhone native app through [UIWebView stringByEvaluatingJavaScriptFromString:]. To help development, and later check user-provided code, I use the following function to ...
Hello Guys,
i use the UIWebView to load Arabic Html, using UTF8 Unicode, but the rendering is deadly slow, so is the scrolling.
on the contrary when using English Html, everything works more reasonable.
any advice on how to render unicode Html on the UIWebView??
Appreciate your Help!
Thanks.
...
Hello
I thought I had already asked this question but I cant see it so I will ask again.
I need to write an app which simply contains a webview that rotates. How do I rotate the text when the user puts their phone from portrait to landscape or vice versa?
Cheers
Paul
...
Hello
I keep trying to ask this question but it never seems to go on!
I have made a very simple web browser app using a webview. Now I need to get the app so that when the IPhone is rotated, the text of the page is rotated as well
How do I do this?
I am very confused by the auto resize dialog, so it is possible I have done something...
I need to control a website that is loaded into a UIWebView like sending post data and using get requests. After each request the response should be loaded as a string into a variable.
The reason for this is that I'm trying to fetch data from a website that has no public web api and using cookie based user authentication. So I want to l...
Hey
I'm developping an app that download the content of a web page on the iPhone then store it so the user would be able to access it offline.
I'm using NSURLConnection to download the page, as is the doc. But it downloads only the HTML code without extra content like images.
Even if images are not in a NSData structure, I would like ...
Is there any way to tell a UIWebView not to load images and CSS for faster rendering?
Solution: URL filtering for UIWebView on the iPhone
...
I need to do something on each page change, before that page starts loading/executing.
First, I tried using -webView:shouldStartLoadWithRequest: but that won't work, because it's also called for XHR requests and iframe requests.
Second, I tried using -webViewDidStartLoad: and comparing webView.request to it's previous value, to see if ...
Thanks in advance for sending answer to me........
Im the beginner in iphone development.
I tried last 2 days to set background image in UIWebView in iphone.But i can't.
Becoze i doesn't know how to take(proper path) of the image from of project directory and proper syntax of that.
...
I'm using hittest to pick up when a user touches my UIWebview. I need to know when the user has stopped touching the view, but I don't get any events from hittest. Is there another function to do this?
- (void)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
NSLog(@"Event type:%@", event.type);
if (event.type == UIEventTypeTouches)...
Hello,
I'm using UIWebView to display article and one of functionality requirements is text resizing. Since, setting increased size and reloading UIWebView loses scroll offset I decided use Javascript solution.
Article HTML body tag looks like this: <body style='font-size:12px;'>
And resizing function basically looks like this:
NSStr...
I am trying to solve 2 things in my UIWebView:
Load local assets in place of remote ones, under the right conditions
Load remote assets as normal if there are no local ones or they are outdated
Allow the webview to go "back" without needing to reload it's html form the server
So to handle #1 and #2, I implemented a custom subclass NS...