12-27-2009, 07:57 PM
#1 (permalink )
College Student
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Increase Default.png's time on screen
I have a default.png image shown right before my App loads, for personal reasons I'd like to keep it on the screen about a second longer. How would I delay my app from loading for one second, or increase the default image's time on screen? Thanks!
12-27-2009, 10:42 PM
#2 (permalink )
College Student
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Quote:
Originally Posted by
ColouredRobot
I have a default.png image shown right before my App loads, for personal reasons I'd like to keep it on the screen about a second longer. How would I delay my app from loading for one second, or increase the default image's time on screen? Thanks!
Nevermind I figured it out, just go into your app delegate's implementation file (.m) and right underneath the following code:
Code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
Type in:
"x" is the number of seconds you want to display the default screen for.
Enjoy!
12-28-2009, 12:34 AM
#3 (permalink )
Registered Member
Join Date: Jun 2009
Posts: 361
Thanks for sharing this.
12-28-2009, 01:06 AM
#4 (permalink )
Registered Member
Join Date: Oct 2009
Posts: 22
Another way is to have your first view present the exact same picture in a modalview e.g.
SplashPageViewController *modalViewController = [[SplashPageViewController alloc] init];
[modalViewController autorelease];
[self presentModalViewController:modalViewController animated:NO];
[self performSelector:@selector(hideSplash) withObject:nil afterDelay:1.0];
this way you can make use animations.
01-05-2010, 02:29 AM
#5 (permalink )
College Student
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Quote:
Originally Posted by
Peeks
Another way is to have your first view present the exact same picture in a modalview e.g.
SplashPageViewController *modalViewController = [[SplashPageViewController alloc] init];
[modalViewController autorelease];
[self presentModalViewController:modalViewController animated:NO];
[self performSelector:@selector(hideSplash) withObject:nil afterDelay:1.0];
this way you can make use animations.
Oh nice!!! Thank you very much!
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» Advertisements
» Online Users: 246
23 members and 223 guests
ADY , AragornSG , bookesp , chillyh , dacapo , Dani77 , Davey555 , Dominus , dre , glenn_sayers , HemiMG , JasonR , karlam963 , M.A.S. , marshusensei , mer10 , nobre84 , Oral B , prchn4christ , Raggou , Rudy , spiderguy84 , themathminister
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp