uiwebview is not loading index.html the second time

I have an app that I load in a uiwebview, it first load a splashscreen and then the index.html file(the menu), fine, just as it should!

But if I navigate to a different page eg page2.html and then close the app, and then start it again, then it is not loading the splashscreen and it does not load the index.html file, instead it loads the page it was on when the app was closed, the page2.html.

Has anybody the same problem? And a solution to it? Thanks, Claes

-------------Problems Reply------------

Are you using iOS4? If so, it's highly likely the application was still running in background after you pressed the Home button.

The video here shows you how to close the applications running in background.

Category:uiwebview Views:0 Time:2010-08-16
Tags: uiwebview

Related post

  • UIWebView won't load links with certificate (https:// prefix) 2011-03-25

    I know this has been asked before but I have looked at every answer (there aren't many) and none help me. The issue I am running into is dealing with certificates with my schools e-mail service. The links for the two e-mail services are here: Main sc

  • How to save the content in UIWebView for faster loading on next launch? 2009-08-27

    I know that there are some caching classes introduced in the iphone sdk recently, and there is also a TTURLRequest from three20's library that allows you to cache a request to a URL. However, because I am loading the web page in UIWebView by calling

  • iPhone SDK: Tell UIWebView not to load images and CSS just plain HTML and JS? 2010-01-14

    Is there any way to tell a UIWebView not to load images and CSS for faster rendering? Solution: URL filtering for UIWebView on the iPhone --------------Solutions------------- Use media queries. The first one says "if it is not an iphone, use the norm

  • Need to filter certain UIWebView requests and load them in different UIWebViews 2010-03-01

    Some Background I have an iPhone app with three UIWebViews, each used to show a different type of page. (The content is specifically designed for this purpose, they're not real web pages.) There are links associated with each specific web view. For e

  • How to control the color of a UIWebView (before contents load)? 2010-03-22

    I am trying to have a BLACK colored UIWebView before its contents load. In IB, i tried both making the background color of the UIWebView black, as well as, making it have a transparent background and have its parent view's background be black. Both d

  • iphone: How do I know the UIWebView is fully loaded? 2011-05-21

    Yes, I know UIWebView has didFinishedLoad & didStartLoad delegate. However, the didFinishedLoad does not mean the full completion. It may be called when one of the items that the UIWebView is finished loading. i.e., UIWebView may call this delega

  • How to auto-load index.html in sub-directories with Apache 2 2011-06-20

    I'm having problem auto-loading index.html in sub-directories with Apache 2. Auto-loading of index.html works fine for root directory. You see, to make things generic, my web app is written such that each module resides in its own sub-directory. Each

  • How to cache content in UIWebView for faster loading later on? 2009-08-28

    I notice that the iphone safari caches content so that your page load for later is much faster much like a desktop browser. So take mobile gmail web page for example, the first load is quite slow (5-10 secondS). But if I close the tab and reopen the

  • UIWebView: Error while loading URL 2009-10-06

    I am trying to build an RSS reader for the Tom's Hardware website. I have an error when I try to load an URL into an UIWebview from an RSS link. Here'is my code: - (void)viewDidLoad { [super viewDidLoad]; if (self.url != nil) { NSURL *requestUrl = [N

  • UIWebView is not loading a page 2009-11-19

    I got a UITabBarController and one of the bar items is a Navigation Controller with some buttons on it. One of the buttons opens up a urlRequest and load it in a UIWebView. NSURL * url = [NSURL URLWithString:myUrl]; NSURLRequest * urlRequest = [NSURL

  • Reused UIWebView showing previous loaded content for a brief second on iPhone 2010-02-22

    In one of my apps I reuse a webview. Each time the user enters a certain view on reload cached data to the webview using the method :- - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)encodingName baseURL:(NS

  • UIWebView - remote html loading local images 2010-04-14

    I'm trying to develop an application using UIWebView. The app is loading remote URL's, so in order to make it quick I want it to use the images included in the application bundle. I was wondering if there is a way to do it without forcing the applica

  • Setting font in UIWebView for a loaded in rss feed 2010-07-01

    How would I set the font for an rss feed I am loading into UIWebView? Right now the rss feed loads in fine but is a default font and size that is undesirable. I would like to somehow control that. I am a super beginner so I apologize if this is a dum

  • UIWebView doesn't load external Javascript file 2010-08-31

    I have the following innocent-looking code (index.html), but it doesn't load the code.js file. It works well if I copy/paste the contents of the file in the HTML page. Both index.html and code.js files are in the same directory. This is the code snip

  • UIWebView delay in loading local content 2010-10-04

    I'm displayed a small amount of local content in a UIWebView, roughly 3 paragraphs of text and one 100x100px image. When the UIWebView is pushed onto to the nav controller, it takes about half a second before the content is displayed. This occurs on

  • UIWebView zoom on load? 2010-10-20

    I am loading content into a UIWebView via a string : - (void)viewDidLoad { [super viewDidLoad]; NSString *html = [[[NSString alloc] initWithFormat:(@"<html><head><style type=\"text/css\">body { text-overflow: ellipsis; font-size: 14

  • UIWebView didn't load! 2011-03-09

    I used UIWebView to load a local html file to get content of it. But it seems not work. So what was the reason? CGRect tempRect= CGRectMake(0, 0, 160, 480); myWebView=[[UIWebView alloc]initWithFrame:tempRect]; myWebView.delegate=self;[myWebView loadR

  • UIWebView won't load new URL 2011-03-10

    I have a UITableView that displays peoples names of whatever department is chosen. When you then select a person in the TableView, it loads a detail page with labels with all their contact info; then at the bottom it loads their website in a smaller

  • UIWebView not showing/loading request 2011-03-11

    Good morning everyone, I have an RSS reader tha opens a Detail view controller when a feed in tableView is clicked. The HTML of the feed is loaded from a items array like this in DetailController's custom setFeed() method: [self.itemContent loadHTMLS

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.092 (s). 11 q(s)