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];
}
Sign up here with your email
1 comments:
Write commentshttps://drive.google.com/open?id=0BwU5Y4Xqfa42QkYtLWpEZzVyVm8
ReplyConversionConversion EmoticonEmoticon