@interface LaunchViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIImageView *launchImage;
@end
@implementation LaunchViewController
- (void)viewDidLoad {
[super viewDidLoad];
[NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(display:) userInfo:nil repeats:NO];
}
-(void)display:(NSTimer*)timer
{
[UIView animateWithDuration:3.0 animations:^{
self.launchImage.alpha=1.0;
}completion:^(BOOL finished) {
[UIView animateWithDuration:3.0 animations:^{
self.launchImage.alpha=0.0;
}completion:^(BOOL finished) {
ViewController *dv =[self.storyboard instantiateViewControllerWithIdentifier:@"vc1"];
[self presentViewController:dv animated:YES completion:nil];
}];
}];
}
Sign up here with your email
ConversionConversion EmoticonEmoticon