测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
Requested最后发布 | 2016年10月 |
由 Andres Brun 维护。
UINavigationController 的子类,用于覆盖 push 和 pop 方法以创建新的转换效果。目前已实现了两种转换动画
屏幕分割成方块,每个方块旋转直到显示新的控制器。有两种动画变体
屏幕分割成像素,每个像素淡出到显示下一个视图。有两种动画变体
视图显示在不同立方体的面上。有两种动画变体
use_frameworks!
pod "ABCustomUINavigationController"
要使用该组件,您只需将 SquaresFlipNavigation 文件夹复制到您的项目中,并创建导航控制器如下
#import "FlipSquaresNavigationController.h"
[[FlipSquaresNavigationController alloc] initWithRootViewController:self.viewController];
import ABCustomUINavigationController
let navigationController = FlipSquaresNavigationController(rootViewController: viewController)
或
#import "CubeNavigationController.h"
[[CubeNavigationController alloc] initWithRootViewController:self.viewController];
import ABCustomUINavigationController
let navigationController = CubeNavigationController(rootViewController: viewController)
并使用常用的方法如 usual 使用常见的 push 和 pop 方法进行推送和弹出
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
- (UIViewController *)popViewControllerAnimated:(BOOL)animated
- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated
- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated