[Solved] Splash screen for IOS in xcode 6.2


I implemented splash screen using following method and it worked for me

Add following code to your appdelegate.h

@property (strong, nonatomic) UIViewController *viewController;
@property (strong, nonatomic) UIImageView *splashView;

In Appdelegate.m insert the following code in application didFinishLaunchingWithOptions

[_window addSubview:_viewController.view];
[_window makeKeyAndVisible];
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:YES];
splashView=[[UIImageView alloc]initWithFrame:[UIScreen mainScreen].bounds];
 splashView.image = [UIImage imageNamed:@"splash screen.png"];
[_window addSubview:_splashView];
 [_window bringSubviewToFront:_splashView];

add the following line to application didFinishLaunchingWithOptions

[self performSelector:@selector(removeSplash) withObject:nil afterDelay:5];

and implement the following function somewhere in appdelegate.m

-(void)removeSplash;
{
    [_splashView removeFromSuperview];
    [_splashView release];
}

5

solved Splash screen for IOS in xcode 6.2