jjzjj

UIBeziers

全部标签

ios - 两个 CGPaths/UIBeziers 之间的补间/插值

我有一个包含CGPath的CAShapeLayer。使用iOS的内置动画,我可以使用动画轻松地将这条路径变成另一条路径:CABasicAnimation*morph=[CABasicAnimationanimationWithKeyPath:@"path"];morph.fromValue=(id)myLayer.path;mayLayer.path=[selfgetNewPath];morph.toValue=(id)myLayer.path;morph.duration=0.3;[myLayeraddAnimation:morphforKey:nil];这很完美。但是,我现在想在拖

ios - 两个 CGPaths/UIBeziers 之间的补间/插值

我有一个包含CGPath的CAShapeLayer。使用iOS的内置动画,我可以使用动画轻松地将这条路径变成另一条路径:CABasicAnimation*morph=[CABasicAnimationanimationWithKeyPath:@"path"];morph.fromValue=(id)myLayer.path;mayLayer.path=[selfgetNewPath];morph.toValue=(id)myLayer.path;morph.duration=0.3;[myLayeraddAnimation:morphforKey:nil];这很完美。但是,我现在想在拖