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...
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...
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...
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, ...
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:...
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=...
Is there anyway to display a image in a UIWebview from the iphone photo storage
...
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...
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.
...
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...
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...
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.
...
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...
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...
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.
...
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.
...
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 ...
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...
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:
...
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
...