zoukankan      html  css  js  c++  java
  • 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


     

  • 相关阅读:
    Angular2与Angular1的区别
    JS的浅拷贝与深拷贝
    浅谈js的事件冒泡和事件捕获
    JS中的call、apply、bind方法
    WEB前端性能优化常见方法
    开放定址法——线性探测(Linear Probing)
    分离链接法(Separate Chaining)
    概观散列函数
    散列——动机引入
    AVL重平衡细节——插入
  • 原文地址:https://www.cnblogs.com/YouXianMing/p/3677162.html
Copyright © 2011-2022 走看看