代码库> 视图动画> 指定控件做转场动画
指定控件做转场动画
关注
查看次数:1714 下载次数:274
上传时间:2017-01-03 大小:881 B
指定控件转场动画演示https://github.com/k373379320/ZBTransitionTest

1.导入
#import "XZB_Transition.h"
2.代理
@interface ZC1ViewController ()
3.设置代理对象
self.navigationController.delegate = self;
4.
#pragma mark
- (id )navigationController:(UINavigationController *)navigationController
animationControllerForOperation:(UINavigationControllerOperation)operation
fromViewController:(UIViewController *)fromVC
toViewController:(UIViewController *)toVC{

if ([toVC isKindOfClass:[ZC2ViewController class]]) {

XZB_Transition *transition = [XZB_Transition transitionWithViewArray:@[@[@"mainImageView",@"mainImageView"],@[@"titleLabel",@"titleLabel"]]];

return transition;
}else{
return nil;
}
}
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
提示
sina weixin mail 回到顶部