GithubHelp home page GithubHelp logo

twink1ezzzz / mynavigationcontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codermyy/mynavigationcontroller

0.0 0.0 0.0 1.04 MB

导航控制器的压缩 , 使得可以将导航范围缩小到指定区域 , 实现页面中的页面效果 . 适用于路径选择,文件选择等

Objective-C 100.00%

mynavigationcontroller's Introduction

MYNavigationController

写在最前 : 通常情况下 , 导航的作用域为整个屏幕 , 即使把view范围缩小 , 但是push的效果依然存在于全局 . 此demo将导航的作用域可以进行随意压缩 , 便可以实现在页面中的页面可以局部性的push , pop

使用范例 :

   创建弹窗菜单 , 并创建MYNavigationController导航控制器对其包装 , 设置需要展示的frame以及弹出动画类型.
    MenuController *menu = [[MenuController alloc]init];
    MYNavigationController *nav = [[MYNavigationController alloc]initWithShowFrame:CGRectMake(0, (my_Screen_Height - 388)*0.5, my_Screen_Width, 388) ShowStyle:MYPresentedViewShowStyleFromBottomSpringStyle root:menu callback:^(id callback) {

    NSLog(@"----------点击了-------%@",callback);

    }];
//弹出弹窗
    [self presentViewController:nav animated:YES completion:nil];
//值得注意的是 : callback为MYNavigationController导航控制器的一个公开属性 , 在内部菜单中 , 可以自行实现 , 并回调出任意内容

image image



image image


---- 其他具体的内容 , 请见demo

mynavigationcontroller's People

Contributors

codermyy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.