I will explain, how to create an animation, when you Default image comes to front with dissolving.
To create an animated Intro View in iOS App, which has a TabBarController you may do the following:
- Create an Intro View Controller, which has one UIImageView with your Default.png.
- Add the following to your application didFinishLaunchingWithOptions method
123456IntroViewController *introViewController = \[[IntroViewController alloc] initWithNibName: \@"IntroViewController" bundle:nil];self.window.rootViewController = introViewController;[self.window makeKeyAndVisible]; - Add the following method to your IntroViewController:
123456789101112131415161718192021- (void)viewDidAppear:(BOOL)animated{[super viewDidAppear:animated];[UIView animateWithDuration:0.5animations:^{CGRect frame = self.imageView.frame;frame.origin.x -= frame.size.width;frame.origin.y -= frame.size.height;frame.size.width *= 3;frame.size.height *= 3;self.imageView.frame = frame;self.imageView.alpha = 0.0;}completion:^(BOOL finished){useDelegateappDelegate.window.rootViewController = \appDelegate.tabBarController;}];}
Explanation:
After app loads, Intro View Controller is diplayed. Then, when it’s view appears, it’s UIImageView’s frame is trippled in size and it’s origin is moved to top left. Also the transparency is changed to 100%. After animation finishes, your tab bar controller is displayed.