Reputation: 999
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
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
Reputation: 14160
You can just bring your intro view to front, and close it using NSTimer.
Upvotes: 0