Skip to content
基于CABasicAnimation实现的UIView显示隐藏动画。
Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HZViewAnimationDemo
gif
.gitignore
README.md

README.md

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");
    }];
You can’t perform that action at this time.