Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-27-2009, 07:57 PM   #1 (permalink)
College Student
 
ColouredRobot's Avatar
 
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Exclamation 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!
ColouredRobot is offline   Reply With Quote
Old 12-27-2009, 10:42 PM   #2 (permalink)
College Student
 
ColouredRobot's Avatar
 
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Default

Quote:
Originally Posted by ColouredRobot View Post
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:

Code:
sleep(x);
"x" is the number of seconds you want to display the default screen for.

Enjoy!
ColouredRobot is offline   Reply With Quote
Old 12-28-2009, 12:34 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 361
Default

Thanks for sharing this.
falcon5280 is offline   Reply With Quote
Old 12-28-2009, 01:06 AM   #4 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 22
Default

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.
Peeks is offline   Reply With Quote
Old 01-05-2010, 02:29 AM   #5 (permalink)
College Student
 
ColouredRobot's Avatar
 
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Default

Quote:
Originally Posted by Peeks View Post
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!
ColouredRobot is offline   Reply With Quote
Reply

Bookmarks

Tags
default, delay, image, load, png

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» 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
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:25 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0