Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
gif
 
 
 
 
 
 

HZAnimation

一个使用CABasicAnimation实现的动画封装。用于过渡UIView的展示隐藏。

Sample gif:

Sample

Usage:

  • 1.将HZAnimation文件拖入项目
  • 2.在需要使用的页面
#import "HZAnimation/UIView+HZAnimation.h"
  • 3.显示:
[<#your UIView obj#> HZAnimationShowDuration:<#AnimationDuration#>  Completed:^{
        NSLog(@"Animation completed");
    }];
  • 4.隐藏:
[<#your UIView obj#> HZAnimationHideDuration:<#AnimationDuration#> Completed:^{
        //TODO: remove view from superView
        //other thing
        NSLog(@"Animation completed");
    }];

About

基于CABasicAnimation实现的UIView显示隐藏动画。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published