In the Contacts app, when you select an image for a contact, load the thumbnail image in position with cool animation is done. This is true when you dismiss the image sticker.
If I was guessed, after rejecting the image, the image is placed in the UIIMageView that matches the size and location of the crop field of the image picture. Then UIImageView is expanded down and in position. But it seems that it animates with the curve
How did this do it? I want to apply something like this, but if this was the case in an iPad app, then I would have to find the coordinates of the image frame inside the popup.
Anyone know how they did it? Am i doing something
I am not a human being, but I think it is a < Combining a UIBezierPath with code> CAKeyframeAnimation , which is mixed with the original animation of the border, My Bezier is not perfect, but if you get this idea, Perhaps this is something like this:
CGPET Center = CGTEXMake (auto.vu.we.f. size.width / 2.0, self.view.frame.size.height / 2.0); CGRT Ultimate = CGRKMake (0.0, 0.0, 75.0, 75.0); CGPoint Final Center = CP Pointsmake (25.0, 25.0); UIBezierPath * Path = [UIBezierPath bezierPath]; [Pathway: center]; [Path addCurveToPoint: Last Center Control Point1: CGPointMake (self.view.frame.size.width, 0.0) Control Point2: CGPointMake (100.0, finalCenter.y)]; UIImage * image = [UIImage imageNamed: @ "YOURIMAGE.png"]; NSAssert (Image, @ "Error loading picture"); CALayer * imageLayer = [Calair layer]; ImageLayer.contents = (ID) image. CGImage; ImageLayer.bounds = Ultimate; ImageLayer.position = Last Center; [Self.view.layer addSublayer: imageLayer]; KKEFAME Animation * Animation = [Keyfire Animation Animation With Path: @ "Status"]; AnimatePosition.path = [Path CGPath]; AnimatePosition.duration = 2.0; [Image Layer Ad Animation: Emimatogation Fork: @ "Arc"]; CABasicAnimation * animateBounds = [with CABasic Animation Animation: @ "border"]; AnimateBounds.duration = 2.0; AnimateBounds.fromValue = [NSVLite valueWithCGRect: self.view.bounds]; AnimateBounds.toValue = [NSValue Value withCGRect: finalRect]; [Image Layer Ad Animation: Animated Bounce Fork: @ "Zoom"];
Comments
Post a Comment