NimbleKit - fast iOS app development

preload navController.gotoPage

Ask questions and share your skills here

preload navController.gotoPage

Postby HughJohnson » Tue Jul 14, 2009 9:22 pm

Is there a way to preload a page before using navController.gotoPage?
What I mean is on the iPhone when I call something like:

Code: Select all
navController.gotoPage("pageName.html?something=something");


The page comes in white, then displays the html on the page, is there a way to have it not flash to white (as it does on the stimulator)? Also when first loading my app (after Default.png is removed) the screen stays white for a fair amount of time, can this also be eliminated?

Basically there is a lot of annoying white on the screen, between pages and I would like it to not be there.
Image
User avatar
HughJohnson
NimbleKit Expert
 
Posts: 286
Joined: Thu Jun 18, 2009 4:44 pm

Re: preload navController.gotoPage

Postby sunny » Wed Jul 15, 2009 10:10 am

we know about this and this will be fixed, most likely in 1.6
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: preload navController.gotoPage

Postby HughJohnson » Wed Jul 15, 2009 4:41 pm

sunny wrote:we know about this and this will be fixed, most likely in 1.6

Awesome, in the mean time can you perhaps allow a color change? If it were a yellow background instead of white I could work around it.
Image
User avatar
HughJohnson
NimbleKit Expert
 
Posts: 286
Joined: Thu Jun 18, 2009 4:44 pm

Re: preload navController.gotoPage

Postby sunny » Wed Jul 15, 2009 4:56 pm

it can't be changed now :(
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: preload navController.gotoPage

Postby Andy Baird » Wed Jul 15, 2009 6:48 pm

Sunny, awhile ago I posted elsewhere in the forum about a half-second white flash between the time my default.png appears and the time my first screen (which is identical) appears. There are no navControllers in my project, though I do have a toolbar on every screen.

Is this related to the white-flash issue that Hugh mentioned, and can it be fixed? It's very obvious, and I'm concerned that it could lead to an App Store rejection.

Andy Baird
User avatar
Andy Baird
 
Posts: 113
Joined: Sat May 30, 2009 10:32 pm
Location: On the road in the southwestern US

Re: preload navController.gotoPage

Postby sunny » Wed Jul 15, 2009 8:19 pm

white background is just web-browser which did not load page page yet, when you see your default.png the application loading itself, but page is not loaded yet, so then it shows blank page which starts to load content. It is hard to make it preloaded or something like this on the beginning, so we are working on it and this will be fixed. I afraid there is nothing you can do about it right now.
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: preload navController.gotoPage

Postby Andy Baird » Thu Jul 16, 2009 4:17 am

"we are working on it and this will be fixed. I afraid there is nothing you can do about it right now."

OK, I'll wait for your fix. :-)

Andy
User avatar
Andy Baird
 
Posts: 113
Joined: Sat May 30, 2009 10:32 pm
Location: On the road in the southwestern US


Return to How To...

Who is online

Users browsing this forum: No registered users and 1 guest