splash screen in iphone programming

//splash is my imageView

    splash=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];

    splash.image=[UIImage imageNamed:@”talent1.png”];


    activityindicator=[[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(110, 220, 30, 30)];

    [activityindicator startAnimating];


    activityindicator.color =[UIColor blueColor] ;



    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {

        self.viewController = [[[TalentViewController alloc] initWithNibName:@”TalentViewController_iPhone” bundle:nil] autorelease];

    } else {

        self.viewController = [[[TalentViewController alloc] initWithNibName:@”TalentViewController_iPad” bundle:nil] autorelease];


        self.window.rootViewController = self.viewController;

    [self performSelector:@selector(splashmethod) withObject:splash afterDelay:3.0];


    [self.viewController.view addSubview:splash];

    [self.viewController.view addSubview:activityindicator];


    [self.window makeKeyAndVisible];

    return YES;






    [activityindicator removeFromSuperview];

    [splash removeFromSuperview];




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s