ABC定制视图导航控制器

 

ABCustomUINavigationController  ABC定制视图导航控制器

 

Subclass of UINavigationController for overwriting push and pop methods to create new transitions effects. Currently it has been implemented two transition animations:
继承至 UINavigationController (UI导航控制器),重写了push和pop的方法,创造了全新的转场效果,如今已经实现了两种转场动画.

SquaresFlip
弹跳的方块效果

The screen is split in squares and each one rotates until showing the new controller. It has two animation variation: 
屏幕被分割成了许多的小方块,每一个小方块都会翻转,直到显示出新的视图控制器.他有着两个参数可改:(本人试验了,效果相当好)

  • Randomly(随机)
  • Horizontally(水平)

Cube effect
长方体效果 

The views are showns in differents cube's faces. It has two animation variation: 
视图被显示在不同的长方体的面上.他有着两个参数可改 

  • Horizontal(水平)
  • vertical(垂直)

Use
使用 

For using that component you only have to copy the SquaresFlipNavigation folder into your project and create the navigation controller as:
要使用这个组件呢,你仅仅需要拷贝SquaresFlipNavigation文件夹到你的工程项目中,然后创建一个导航控制器,就像下面这样:

import "FlipSquaresNavigationController.h"// 弹跳的方块效果
  [[FlipSquaresNavigationController alloc] initWithRootViewController:self.viewController];

or
或者

#import "CubeNavigationController.h"// 长方体效果
[[CubeNavigationController alloc] initWithRootViewController:self.viewController];  

and pushing and pop normally with navigation methods:
还有,你使用之前导航控制器的常规的方法就行了:

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
- (UIViewController *)popViewControllerAnimated:(BOOL)animated
- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated
- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值