uiwebview

Cookies in UIWebView

I have a UIWebView, and I don't want it to store an cookies, so just before the webview is loaded I do: NSArray* cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]; for (NSHTTPCookie *cookie in cookies) { [[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie]; } Checking the count of cookies is 0 so the...

How to make a transparent UIWebVIew

I have an app with a UITableView and a corresponding detail view for each row. In the detail view I have to display some text and a background image (text is different for each row, but the image remains the same). The easiest way, in my opinion, is to put the text in an .rtf file and display it in a UIWebView. Then just put a UIImageVie...

memory leak on uiwebview alloc

hi everyone. in my app i have a uiwebview which i used to display image file. now the problem is i am getting a leak in this view. here i have written the following code. UIWebView *the_pWebView = [[UIWebView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; // the leak is on this line. the_pWebView.backgroundColor = [UIC...

[iphone / ipad] Why UIWebView only load half of the html string?

Hello All. I have a UIWebView. Here is what I did: I give it a big size, let's say 600 * 400 (h * w), and load with a HTML string A, it shows a paragraph of text and a pic Then I changed the web view's frame (size) to 600 * 200 (h * w), load with another HTML string B, it is fine. Then I change the web view back to the original size, ...

UIWebView: open some links in Safari, some within the view

My app features content that (for text formatting reasons) is presented in an UIWebView. Within the content there are links, some of which should open their target in mobile Safari, while others should navigate within the content. So far, I've catched the link requests using a UIWebView delegate. In my implementation of -(BOOL)webView:...

High Resolution images in a uiwebview

I have a webview that displays an image, as shown in the code below. The bundle also has a [email protected] with dimensions of 128x128 for use on the iPhone4. The [email protected] never shows. Is there a way to display either/or depending on whether it's an iPhone or an iPhone4? <img src="DGT64.png" width="64" height="64" align="left" style=...

how to add a image from the photo storage to a UIWebview

Is there anyway to display a image in a UIWebview from the iphone photo storage ...

iPhone SDK - Play Audio/Video through UIWebView

Hello everyone, I want to know if I could play a mp3 file or mp4 (video) file through an UIWebView by loading a simple url request. I have already tried sending the UIWebView to a video link (e.g. http://google.com/blah.mp4) but it will flash a quick QuickTime logo and show a black screen. However in MobileSafari it streams fine. Is the...

Download UIWebView page to folder.

So I have a UIWebView. When it reaches a certain webpage I want it to save that webpage in my resources folder. How can I obtain this goal. Please note It has to be saved threw the UIWebView due to cookie reasons. Its an XML file that you can't access unless you are logged in. ...

PDF in webview performance

Hi - I am using the following (simple) code to load a PDF from the documents folder in my app into a UIWebView. The performance is very poor. I tried loading the same PDF from the web via Safari and the performance was great. Does anyone have any ideas? (this viewController is being presented as a modalViewController). - firstView.m In...

iphone: can i detect a url type?

I'm currently creating a twitter client for iphone. Basically, I have three kinds of url types I want to handle: Standard URL's (e.g. http://www.msn.com) YouTube URL's URL's containing links to a stream. When a user clicks a link.. instead of launching the web view and letting the webview decide whether to load quicktime player & y...

How to add a image button to a web view programatically using image tag in iPhone.

Hi Guys, I want to add a button to a bottom corner of the view after all the content is displayed. how can I add the image tag to loadHtmlString at the bottom right corner of the web view. ...

iPad embedded YouTube video player stays in fullscreen after stopping it programatically

Hi. I have a UIWebView that loads a YouTube video. The problem is, that if the video is playing in full screen and I reload the web view to "about:blank" to stop the video, the video player remains as the top view in the window's view hierarchy and blocks everything. Only the black video player remains visible. Has someone encountered...

Displaying content at correct scale in UIWebView on iPad

I have a UIWebView set to scale to fit in an iPad app that gets its content from and NSString. If I turn off scale to fit the text is bigger, although would like it to be much bigger, but I lose the zooming feature. If I set scale to fit on the text is very small as it is obviously scaling the lot to fit the page...and I get zooming ba...

Detecting touches on an HTML5 <video> in a UIWebView on the iPhone

I would like to be able to detect touch/click events on the tag in the UIWebView. But it doesn't look like it responds to that event. Any ideas? videoElement.addEventListener('touchstart', myFunc, false); Could also be the 'click' event. ...

How can I hide/disable the fullscreen button in the iPad’s standard HTML5 video controls?

I’m writing an HTML5 page with a embedded video tag for the iPad. How can I hide or disable the fullscreen button? I just need to show the video without the fullscreen option. ...

How to delete the cache from UIWebview or dealloc UIWebview

Every time I load a new page with UIWebView the before loaded page is shown for a short time. How can I clear that cache? Another possibility would be to dealloc UIWebview. I tried that but than my UIWebView is always "empty". How should the alloc and dealloc be done in this case? I noticed that the UIWebView is consuming about 10 MB ...

Programatically Controlling a UIWebView with iOS 4

Hi I am creating an iPhone app for checking your school timetable. At the moment you have to manually enter your timetable, which is very very time consuming, and I don't think that anyone would even bother with it. However, my school has a V.L.E. on it's website and we can access our timetables online by entering our username and pas...

UIWebView inserting new <script> into head using stringByEvaluatingJavaScriptFromString

I am loading an existing html document in a UIWebView with iOS 3.2 on an iPad. After the HTML loads I run the following code to insert jQuery into this document: - (void)webViewDidFinishLoad:(UIWebView *)webView { NSLog(@"load complete"); if (webView == self.contentView) { [self.contentView stringByEvaluatingJavaScriptFromString: ...

How is a UIWebView's text color set?

I have been able to set the color of the background of my UIWebView, but not the textcolor. How can I set the text color? I use this code itemSummary.textColor = [UIColor colorWithRed:202 green:192 blue:146 alpha:0.75]; but get an request for member 'textColor' in something not a structure or union error. Thanks ...