splash screen


splash screen: click here



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];
}
Previous
Next Post »

1 comments:

Write comments
Unknown
AUTHOR
10 September 2016 at 04:01 delete

https://drive.google.com/open?id=0BwU5Y4Xqfa42QkYtLWpEZzVyVm8

Reply
avatar