Skip to content

sheep-mie-mie/AnimationLine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnimationLine

-动画边框

===== 围绕视图完成动画__完成之后执行方法

UIBezierPath

    • (void)moveToPoint:(CGPoint)point
    • (void)addLineToPoint:(CGPoint)point
    • (void)closePath
  • 多个点+闭合 构建一个几何图形

CAShapeLayer

CABasicAnimation 动画

  • duration 持续时间

  • timingFunction 运行状态

    • (instancetype)animationWithKeyPath:(nullable NSString *)path
  • path == @"strokeEnd" / NSStringFromSelector(@selector(strokeEnd)) 注意这一点 否则动画不执行

  • strokeEnd strokeStart

  • 遵守 CAAnimationDelegate 协议 动画结束之后可执行一下方法

    • (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published