Mejdi Lassidi
Mejdi Lassidi

Reputation: 999

how can i present an introduction view for certain amount f time

several apps use to present an introductionary view for an amount of seconds.How can i code it?i use a timer modal view or what ?thks

Upvotes: 0

Views: 97

Answers (2)

KingofBliss
KingofBliss

Reputation: 15115

Check this link

or code as follows,

In the interface of your App Delegate:

@interface AppDelegate : NSObject 

{ UIImageView *splashView; }

In the implementation:

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(UIApplication *)application {

[window addSubview:tabBarController.view];

splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; splashView.image = [UIImage imageNamed:@"Default.png"]; [window addSubview:splashView]; [window bringSubviewToFront:splashView];

// Do your time consuming setup

[splashView removeFromSuperview]; [splashView release]; }

Upvotes: 1

Nickolay Olshevsky
Nickolay Olshevsky

Reputation: 14160

You can just bring your intro view to front, and close it using NSTimer.

Upvotes: 0

Related Questions