Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6203317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:53:42+00:00 2026-05-24T04:53:42+00:00

I am creating a bookmarking feature for my app, I’d like to show the

  • 0

I am creating a bookmarking feature for my app, I’d like to show the user what happens in a way similar to itunes store, when you buy something it jumps to tabBar. I once watched some WWDC video that explained this, but can’t remember how to do it. Any idea where I should start looking for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:53:44+00:00Added an answer on May 24, 2026 at 4:53 am

    You can take a snapshot of the view you want to animate, then create an image layer, then use Core Animation to animate that to the tab bar. Here’s the code I use to do that:

    - (void)animateSnapshotOfView:(UIView *)view toTab:(UINavigationController *)navController
    {
        NSUInteger targetTabIndex = [self.tabBarController.viewControllers indexOfObject:navController];
        NSUInteger tabCount = [self.tabBarController.tabBar.items count];
        // AFAIK there's no API (as of iOS 4) to get the frame of a tab bar item, so guesstimate using the index and the tab bar frame.
        CGRect tabBarFrame = self.tabBarController.tabBar.frame;
        CGPoint targetPoint = CGPointMake((targetTabIndex + 0.5) * tabBarFrame.size.width / tabCount, CGRectGetMidY(tabBarFrame));
        targetPoint = [self.window convertPoint:targetPoint fromView:self.tabBarController.tabBar.superview];
    
        UIGraphicsBeginImageContext(view.frame.size);
        [view.layer renderInContext:UIGraphicsGetCurrentContext()];
        UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
        CGRect frame = [self.window convertRect:view.frame fromView:view.superview];
        CALayer *imageLayer = [CALayer layer];
        imageLayer.contents = (id)image.CGImage;
        imageLayer.opaque = NO;
        imageLayer.opacity = 0;
        imageLayer.frame = frame;
        [self.window.layer insertSublayer:imageLayer above:self.tabBarController.view.layer];
    
        CGMutablePathRef path = CGPathCreateMutable();
        CGPoint startPoint = imageLayer.position;
        CGPathMoveToPoint(path, NULL, startPoint.x, startPoint.y);
        CGPathAddCurveToPoint(path,NULL,
                              startPoint.x + 100, startPoint.y,
                              targetPoint.x, targetPoint.y - 100,
                              targetPoint.x, targetPoint.y);
        CAKeyframeAnimation *positionAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"];
        positionAnimation.path = path;
        CGPathRelease(path);
    
        CABasicAnimation *sizeAnimation = [CABasicAnimation animationWithKeyPath:@"bounds.size"];
        sizeAnimation.fromValue = [NSValue valueWithCGSize:imageLayer.frame.size];
        sizeAnimation.toValue = [NSValue valueWithCGSize:CGSizeMake(50, 50)];
    
        CABasicAnimation *opacityAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"];
        opacityAnimation.fromValue = [NSNumber numberWithFloat:0.75];
        opacityAnimation.toValue = [NSNumber numberWithFloat:0];
    
        CAAnimationGroup *animationGroup = [CAAnimationGroup animation];
        animationGroup.animations = [NSArray arrayWithObjects:positionAnimation, sizeAnimation, opacityAnimation, nil];
        animationGroup.duration = 1.0;
        animationGroup.timingFunction=[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
        animationGroup.delegate = self;
        [animationGroup setValue:imageLayer forKey:@"animatedImageLayer"];
    
        [imageLayer addAnimation:animationGroup forKey:@"animateToTab"];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a social bookmarking app. I am having a re-thought of the
Creating an a app, where I store bunch of photos in the drawable folder,
Creating a google map with store locations within 50 miles of user entered address.
creating a very simple scheduling app I am asking the user to tell me
Creating a calculator-like dialog, I noticed that quickly clicking on a button in IE
Creating a Drawable that is completely empty seems like a common need, as a
Creating a C# install package and I'd like on completed install for the Program
Creating a login system for something and am getting: Warning: mysql_result(): supplied argument is
Creating a searchable contacts kind of app. Below is my code public class EmployeeList
Creating MVC3 Razor Helper like Helper.BeginForm() says that it can be done using extension

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.