自定义专场动画(Custom transition animation)
自定义专场动画(Custom transition animation)
Swift 动画库
访问GitHub主页
共6Star
详细介绍
YHTransitionAnimate
自定义转场动画 (Custom transition animation)
示例图片(The sample picture)
使用方法(Method of use)
ProdDetailViewController *vc = [[ProdDetailViewController alloc] initWithTargetImageName:itemName];
self.navigationController.yh_customAnimation = YES;
self.pushTransitionAnimate = [[YHTransitionAnimate alloc] initWithPushed:^(UIViewController *fromVC, UIViewController *toVC, YHBaseTransitionAnimate *transition) {
YHTransitionAnimate *move = (YHTransitionAnimate *) transition;
move.targetClickedView = imageView;
self.navigationController.yh_customAnimation = NO;
} poped:^(UIViewController *fromVC, UIViewController *toVC, YHBaseTransitionAnimate *transition) {
}];
self.navigationController.delegate = self.pushTransitionAnimate;
[self.navigationController pushViewController:vc animated:YES];
推荐源码
暂无源码 更多源码...