标签:swift教学视频 ios左右侧栏 bsybannerscrollview animation uinavigationcontroll
在需要使用的控制器中添加#import "BSYAnimator.h"和#import "BSYTransitionAnimator.h"两个头文件:
@property(nonatomic,strong)BSYAnimator Animator;@property(nonatomic,strong)BSYTransitionAnimator *TransitionAnimator;///遵循代理@interface ViewController ()///需要跳转的控制器@property(nonatomic,strong)TwoViewControllertwo;
在- (void)viewDidLoad 中初始化
self.Animator = [[BSYAnimator alloc]init];self.TransitionAnimator = [[BSYTransitionAnimator alloc]init];TwoViewController *two = [[TwoViewController alloc]init];self.navigationController.delegate = self;two.transitioningDelegate = self;two.modalPresentationStyle = UIModalPresentationCustom;
//然后在跳转的方法中 [self.navigationController pushViewController:self.two animated:YES];
代码下载:下载
标签:swift教学视频 ios左右侧栏 bsybannerscrollview animation uinavigationcontroll
原文地址:http://blog.csdn.net/mjbaishiyun/article/details/46011543