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

目录
相关文章
|
5月前
uniapp页面之间通信、传参、传值方法(父→传→子,子→传→父);获取被打开页面的数据→传→当前页面;当前页面的数据→传→被打开页面
uniapp页面之间通信、传参、传值方法(父→传→子,子→传→父);获取被打开页面的数据→传→当前页面;当前页面的数据→传→被打开页面
|
4月前
|
SQL 前端开发 安全
视图的作用
视图的作用。
26 1
|
5月前
|
JavaScript
Vue路由 replace属性 控制浏览记录不能前进或后退
Vue路由 replace属性 控制浏览记录不能前进或后退
|
10月前
ArcGIS:如何新建图层组并添加数据、切换数据视图和布局视图、修改符号系统?
ArcGIS:如何新建图层组并添加数据、切换数据视图和布局视图、修改符号系统?
143 0
ArcGIS:如何新建图层组并添加数据、切换数据视图和布局视图、修改符号系统?
|
开发者 Python
对CBV视图的探究(1)数据显示视图
对CBV视图的探究(1)数据显示视图
45 0
文字处理技术:视图坐标都是在父视图的相对坐标
文字处理技术:视图坐标都是在父视图的相对坐标
68 0
SAP Spartacus split view控制同屏显示最大视图数的配置
SAP Spartacus split view控制同屏显示最大视图数的配置
SAP Spartacus split view控制同屏显示最大视图数的配置
|
XML 数据格式
如何在UI5视图里包含原生的HTML视图
如何在UI5视图里包含原生的HTML视图
如何在UI5视图里包含原生的HTML视图
|
Android开发 UED
独立于视图的加载控件--让视图更干净
项目源码请参考https://github.com/CarryGanLove/LoadingHelper 背景和问题 在app后sdk开发过程中,如果有遇到延时任务的时候,往往需要添加一个通用的loading控件用来展示给用户,一来为了提示用户当前有耗时的操作,二来降低用户的等待感提升用户体验。
957 0
QTQuick控件基础(3)视图
1、spliteview 2、stackview ApplicationWindow {visible: truewidth: 640height: 480MouseArea{anchors.fill: parentacceptedButtons: Qt.
1254 0