How do I format an NSURL (what path, or path generator function) so that I can display a downloaded local file (NOT part of the application NSBundle) for use offline? The idea is to snag an HTML file, clean it up and stash it in the iFoo application specific storage area, then later use UIWebView to display it.
Next, I go off to RTFM a...
Hi,
In my iPhone application I need a scrolling text.
I had the text to be displayed and scrolled up and down but I could not get customized text.
I mean all the text is of same font. I need some different font size text .
I am using UITextView, but UITextView do not support customized text in it.
How can I have the scrolling text whic...
Hi,
I have successfully implemented js code to highlight searched text.
But it does not work for my pdf file.
Is there any solution please help.
regards
aamir
...
Hi
I am trying to get the HTML source of a UIWebView without re-downloading it again (a.k.a. do another download, such as [NSData dataWithContentsOfURL:(NSURL*)URL] or launching an NSURLRequest. Browsing the UIWebView header and documentation, there seems to be no way of accessing the current loaded NSData of the source. Am I missing som...
hello everyone. I am trying to display the contents of a rtf file in uiwebview. I do this by taking the contents of rtf into nsmutablestring and loading it into uiwebview.
The problem is along with the content of rtf, the rtf tags and format is also passed in the nsmutablestring. so i the entire content is displayed along with the rtf ...
Hi,
I have an application that is primarily built using jqTouch. Is there a way to disable touch move on the navigation bar? What happens now is, the content is scrolling fine with navigation bar being static, but if user trys to srolll the navigation bar, its allowed. On doing so, it just shows the UIWebView scrolling (dark grey backgr...
This has been really driving me crazy. Web links work fine, but a phone number (I have tried a zillion combinations) do NOT work from my UIWebView. Any help MOST appreciated. Here's 3 more ways to do it. And none of them will dial a phone number.
- (void)viewDidLoad {
[super viewDidLoad];
CGRect webRect = CGRectMake(0.0f, 0.0f, 320.0f,...
Hi all,
I am getting an error while loading a url in uiwebview
"malloc: * error for object 0x2841000: pointer being freed was not allocated
* set a breakpoint in malloc_error_break to debug"
But when i change the url to google.com ,it works fine without any error.
what is this error due to ?
...
Hi,
I'm writing up an iPhone app using the Google Maps API V3, and I was wondering if it is still possible the use the stringByEvaluatingJavaScriptFromString function in the (void)webViewDidFinishLoad:(UIWebView *)webView function?
A simple example being changing the map type (Assuming basic map setup):
- (void)webViewDidFinishLoad:(UIW...
I'm trying to run some javascript against a UIWebView but it's doesn't seem to be working. For example, here is a snippet of html I'm using to test:
<html><body><h1>Hello World!</h1><p>It's me.</p></body></html>
If I run the following javascript against it, the return value is 0, when it should be 1.
var elements = document.getElemen...
I have a pdf open in a UIWebView and I would like to allow the option to open it in Pages. That is, I would like the action toolbar to become displayed when the user taps on the UIWebView (just like in Safari for iPad). How do you enable this capability in UIWebView, if possible?
...
Hello there,
Does anybody know how to play a video in a UIVebView ?
The video comes from the iphone library, when I pick it, I store it in core data as binary data.
If i use the local url of the video it's working fine, the problem I have is that the this url refers to a folder named "tmp", and I don't know the lifetime of it. If I ca...
Hello,
I am looking to load Webview with URL and get content(images) of that.Then scale it to display properly in small size of WebView ot Imageview.
How to do that ?
Thanks,
...
Hi guys,
Was wondering how to apply the CATiled Layer to a webView rather than a scrollView. Went through a lot of books as well as searches and found absolutely nothing regarding how to successfully apply a CATiled Layer to a webView. The basic functionality is to make the website rendering smoother on a webView. I'd really appreciate ...
Ok, I really spend 2 days on this and it has gotten me stumped.
From my main UIViewController I called a WebViewController which is a UIViewController with a UIWebView inside:
UOLCategoriesWebViewController *ucwvcontroller = [[UOLCategoriesWebViewController alloc] initWithNibName:@"UOLCategoriesWebViewController" bundle:nil];
[sel...
I've got a UIWebView which starts off with the scalesPagesToFit property set to YES. This loads up the page and scales it fine. When the user taps a button I want to turn off the scaling and show the page full size but I'm struggling to figure out how to force the page to redraw. I specifically do not want to refresh the page (ie fetch i...
I have tried in many ways that specified in many threads. Still my WebView not loading the local js files.
The way that I have tried
NSString *tempResourcePath=[[NSBundle mainBundle] resourcePath];
NSURL *resourceUrl = [NSURL fileURLWithPath:tempResourcePath];
[webView loadHTMLString:html baseURL:resourceUrl];
NSString *html = [[NSSt...
I found some interesting URL http://cubiq.org/rotating-wheel-for-your-iphone-webapps which has rotational menu. Its good. It has html file along with images, css files etc.
In iPhone app, I copied (to root folder) all the files and imported to project. I'm using UIWebView's load request to load the html. But I'm not getting the rotatable...
Hi all, two question for you:
reading google documentation i've make an html with the JS for make a google maps api call.
I've put this file in my project, and in a TABView i read and render this file in a uiwebview.
Works great but every time i start my app and go to this view i got this message: "appleweb://someID want to use your cur...