How to recreate the Zoom-In effect for launching applications on iOS 7 Springboard?

Currently, I have a parent view controller with a circular gap called itemView in the center.

When I press for a long time, I need to add a child view controller, and the childVC animation will be disconnected from the springboard icon start animation.

This is my code at the moment, which is creating a new VC with a view set in the center of the elements, which scales it on the screen. But how can I get the actual item to become VC and scale on the screen.

Can someone help me recreate the bridgehead effect?

Thanks in advance.

self.ViewController = [[UIStoryboard storyboardWithName:@"iPhone_Storyboard"
                                                              bundle:nil]     instantiateViewControllerWithIdentifier:@"VC"];

        [self addChildViewController:self.ViewController];
        [self.view addSubview:self.ViewController.view];

        self.ViewController.view.transform = CGAffineTransformMakeScale(0.01, 0.01);

        CGPoint originalCenter = self.ViewController.view.center;

        self.ViewController.view.center = itemView.center;

        [UIView animateWithDuration:0.5
                              delay:0.0
                            options:UIViewAnimationOptionCurveEaseInOut
                         animations:^{
                             // Grow!
                             self.ViewController.view.transform = CGAffineTransformMakeScale(1.0, 1.0);
                             self.ViewController.view.center = originalCenter;

                             itemView.transform = CGAffineTransformMakeScale(1.0, 1.0);
                         }
                         completion:^(BOOL finished){
                         }];
+3
source share

All Articles