uiwebview

how to disable horizontal scroll for a uiwebview?

I created a sample in which i imported a word(.docx)on to the uiwebview and displayed.I got the output but i don't want to display the horizontal scroll bar and the vertical scroll also working not properly i can see the black space behind the webview when i scroll it vertically. Here is my code: import @interface userguideLinesNewVie...

How to set custom font in UIWebView?

Hello I have a font in the resources and I loaded it into a UIFont I want to know how to use this UIFont as the default font for my UIWebView Thanks in advance... ...

UIWebview memory problem

Hi, In my App I have a large memory issue I add UIScrollview with a viewController views dynamically when I need and I properly remove the viewController while scrolling. and in that viewController I placed a UIWebiew in IBOutlet and load webview as [m_objWebView loadRequest:[NSURLRequest requestWithURL: [NSURL URLWit...

What is the maximum image resolution supported by the UIWebView?

I would like to put a giant image in a UIWebView and let the user pan around in it. However it seems that the UIWebView automatically will scale the image to save memory? Is this correct? ...

Getting rid of link-click "flash" indicator in iOs UIWebView.

My iPad app uses a lot of UIWeb views to display content. The user clicks small images with links to pull up a smaller view with additional content. When you tap a link in a UIWebview, the link highlights gray for a moment to indicate the click. In the case of links in an in an image, the whole image rectangle flashes gray for a moment, ...

Stop word-wrap dividing words.

body { word-wrap: break-word;} I've been using that code (above) to fit the text in the body into it's container. However what I don't like about it, is that it breaks up words. Is there another way where it will not break up words and only line break after or before a word? EDIT: This is for use within a UIWebView. ...

How to insert UIWebView between UITableViewCells when I tap on accessoryButtonTappedForRowWithIndexPath?

Hi Guys, I need to display the UIWebView under the UITableViewCell when user selects the required cell by tapping on the accessoryButtonTappedForRowWithIndexPath. for example I have three rows, Home, Office and History, which are displayed in table view. If user selects Office then the details in webview should displayed under office's...

webView:shouldStartLoadWithRequest:navigationType: not getting called on webkit with youtube video link iphone

Hi all, I am using webkit to display youtube videos on iOS4. Upon click on the video it should automatically launch the player and display the video, but what's happening is video is rendered in the player but under the webview. What I want to do is make webview's alpha 0 so I'm using delegate webView:shouldStartLoadWithRequest:...

XCode webview connection/server error handling

All, I am fairly new to XCode and am trying to get a handle on how to best deal with connection issues when trying to use a WebView. I know there are related questions on SO, but none seem to offer complete solutions. I have the following code, but it seems a little inefficient. Hopefully, someone can help me refactor it down to a po...

Check if an URL has got http:// prefix

Hi, In my application, when the user add an object, can also add a link for this object and then the link can be opened in a webView. I tried to save a link without http:// prefix, then open it in the webView but that can't open it! Before webView starts loading, is there a method to check if the URL saved has got http:// prefix? And if ...

How to resize webview correctly in landscape mode in iPhone?

I add a navigationbar, a webview and a toolbar(from top to bottom) as subviews of my viewcontroller's view. I want the navigationbar and toolbar's height shrink a little in landscape orientation so I use autoresizingmask to make the height flexible. (UIViewAutoresizingFlexibleHeight will make navigationbar and toolbar's height shrink fro...

How to inject html into a webview?

Problem: I have a webview that is loading a page from Http://somerandomsite-here before the page is loaded I would like to add in the <head> block a reference to a .js that is in my bundle. How do I do that? ...

high resolution screenshot / or pdf from uiwebview

Hi, I want to save a screenshot or generate a pdf from UIWebView text content. I know about how to make screenshots like described in: http://developer.apple.com/library/ios/#qa/qa2010/qa1703.html The thing is I'd like to have the screenshot in 300dpi. It is a fixed requirement to generate the content in a UIWebView. I thought about ...

How to clear back forward list in UIWebview on iPhone?

Hi all, I want to access/clear the back forward list as if the UIWebView is new again. Is there any public api or workaround to do this? I've tried while ([webview canGoback]) { [webview goBack]; } but that will freeze the device (simulator too) Thanks! ...

Disable UIWebView default scrolling behavior using objective-c

I know you can use a javascript to do this <script type="text/javascript"> touchMove = function(event) { event.preventDefault(); } Is there a way to do the same using objective-c? ...

iphone cache using UIWEBVIEW

...i am new to iphone ..i want to store data from web to cache while in offline the web content display from cache.. i used webview for this.....,.any one have idea.. ...

uiweview cache in iphone

...i am new to iphone ..i want to store data from web to cache while in offline the web content display from cache.. i used webview for this.....,.any one have idea.. ...

Application getting memory warning level 2 when loading webview iphone

Hi all, In my application I have a tableview which a couple of cells on click of which I launch webview but my application crashes giving me memory warning level 2 even before the webview loads. I have cleared most of the memory leaks. How should I respond to this memory warning? They say that I have to unload the unwanted views. I'm ...

How to set thumbnail for the video we are loading in the UIWebview in iphone sdk?

Hi guy's I had a thumbnail Image for the video I am playing in the Webview and my code is: -(void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { printf("\n Inside didSelect method....!!"); masterAisleItemListIndexArray = (NSMutableArray*)[ [masterAisleItemListDictionary allKeys] ...

How to use an UIWebView to show small offline html documents?

Could I ship my app with an html document and display this using a UIWebView? How hard is this to use? Is it possible to have a small frame with the UIWebView inside, or does it always take up the whole screen? And can I get rid of all those controls, so the UIWebView works like an advanced UILabel or UITextView? ...