uiwebview

scale down pdf to fit in iframe in uiwebview

I have a uiwebview that loads a iframe to display a pdf file. But only the top left corner of the pdf file i visible, I need to fit the pdf file inside then iframe, that is, I need to scale down the pdf file so that all of it is visible. I know that with webpages you can open a pdf and set the starting scale on it like this page1.pdf#zoo...

iPad receiving memory warning with low memory use

I have an UIWebKit with a HTML, this HTML have several images and text, but just displaying it gives me the memory warning. So I did some tests: The same HTML with different images, fullsize, and after the same images but reduced 50% from it's original size, for the 50% reduced images, I went to preview and reduced all images in 50% The...

iPhone: Open Facebook Fanpage in UIWebView

Hello, I use a fanpage which doesn't require authorization in a normal browser, but if I request my url in a UIWebView I get the Facebook login prompt. Is this normal behaviour or can I avoid this? ...

UIWebViewNavigationTypeLinkClicked event not getting fired for certain links

I am using a UIWebView as an embedded browser within my iphone app. I am using the shouldStartLoadWithRequest function to handle UIWebViewNavigationTypeLinkClicked events for links clicked by a user. It is working as expected for a number of sites, but not for all. For example: when I click on any of the links on website http://www.fo...

iPhone OS: Sharing a UIWebView between ViewControllers in a UITabBarController

I am trying to create a application with a tab bar and a common WebView. The different tabs shows/hides different divs in the WebView but maintain the state otherwise, so I need to share the web view between the tabs. I am trying to use a nib, but I think that might not be the right solution here. Any pointers for doing this correct...

UIWebView EXC_BAD_ACCESS crash

Hi, @synchronized(self) { [webView_ stopLoading]; [webView_ removeFromSuperview]; [webView_ setDelegate:nil]; [webView_ release]; webView_ = nil; [self removeFromSuperview]; } The original code above: em getting this error, By enabling NSZombie i get these two kind of messages at different time -[UIWebView webView:decide...

UIWebView memory management

Hello, I have a problem with memory management. I am developing an application that makes heavy use of UIWebView. This app generates dynamically lots of UIWebViews while loading content from my server. Some of these UIWebViews are quite large and have a lot of pictures. If I use instruments to detect leaks, I do not detect any. However...

showing custom menu on selection in UIWebView in iphone

I want to show 2 options like "hi" & "bye" when user completes selection on UIWebView. I have added observer to my view controller as follows. But I don't know further implementation. Please guide me. [[UIMenuController sharedMenuController] addObserver:self forKeyPath:UIMenuControllerWillShow...

Dragging in UIWebView

Hi, Is there a way to prevent a UIWebView from being dragged? Also, is there a way to actually overwride the common UIWebView functions such as highlighting? Hope someone can answer me. Thanks ...

UIWebView rotation and memory problem

Hi. I have an UIWebView that loads a embedded XHTML like this: body = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; body.scalesPageToFit = YES; body.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; body.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin...

uiwebview within uiscrollview

I am having an issue with a uiwebview within a scrollview. In this scrollview, there is a "header" view at top and "bottomview" which is the webview. I am loading the data into the webview using loadHTMLstring method. What I am trying to do is that when I zoom, it should zoom in only on the bottom portion, not the top part. This is v...

Uiwebview refreshes after zoom and pinch

Hello, I have a uiwebview in my App. So far everything works fine, but when i zoom in or out for example the uiwebview refreshes the loaded page and then scrolls and zooms to the new page location and size. So the zooming works good, but I don't want the user to see the refresh and repositioning of the website. Is there a way to preve...

How to display a set image while UIWebView is loading?

I have an iPhone application with TabBar and WebView. I would like to have a view with an image that pops up over the webview every time I send a new page to load and disappears when the page is loaded. How can I accomplish that? ...

Loading the content of a UIWebView before displaying it

I have a set number of ViewControllers in my app. They are allocated and initialized at application launch and released at exit. They are used by a NavigationController to be pushed/popped. In these ViewControllers there are WebViews (actually there is nothing else). My problem is : When I want to change de content (URL) of a WebView th...

Embedding a long UIWebView within a table view cell with various heights

I want to be able to embed a UIWebView into a tableview's cell (grouped style). The web view is long (longer than the screen), and I want it to display it's full length. So there is no scrolling within the web view itself, just on the table. ------------------------ | a normal table cell | ------------------------ | a normal table cel...

YouTube javascript API accessible via UIWebView on iPad?

I can't seem to get this working using stringByEvaluatingJavascriptFromString. Apparently the webview does something peculiar to youtube videos (due to the YouTubePlugIn.webplugin perhaps?) and the javascript API is unusable. The problem I'm having: How do I pause\stop a video when the user navigates away from a UIWebView with an embedd...

UIWebView - Autoresize so that no scrolling (in the webView itself) is needed

Hey. I'm trying to use a UIWebView for displaying content higher than the screen of the iPhone, without needing to scroll in the webView itself. The webView is placed under a UIScrollView in IB with some other objects that I want the scrollView to scroll up and down with the UIWebView. I know you can do this with a UITextView (CGRect ...

UIWebView - get total height of contents using Javascript

Hey. Oh, and I should probably mention that I am not loading the UIWebView with a website, but with an HTML string. I'm trying to use a UIWebView for displaying content higher than the screen of the iPhone, without needing to scroll in the webView itself. For that, I need a way to get the total document size, including the scrollable ...

UIWebview isn't displaying content I want it to display

In my app I have a UIWebView which loads different rtf files. I use this function to load these files: - (void)loadFile:(NSString*)file { NSString* resourcePath = [[NSBundle mainBundle] resourcePath]; NSString* sourceFilePath = [resourcePath stringByAppendingPathComponent:file]; NSURL* url = [NSURL fileURLWithPath:sourceFilePath isDirec...

UIWebView action sheet popup on a link - customization

Hi, I'm trying to replace or add more options into the action sheet popup in uiwebview. When touching long touch on a link standard uiwebview popup shows up. I saw some apps which did it, but i can't figure it out. the standard options are : open or copy, i want to hide copy and add send email. Any help ? Thanks Albert ...