zoukankan      html  css  js  c++  java
  • [翻译] GTAppMenuController

    GTAppMenuController

    https://github.com/gianlucatursi/GTAppMenuController

    This is a simple project inspired by Paper application of Facebook.

    这是一个很简单的工程,其效果来自于Facebook的Paper应用。

    Trying Paper Facebook I am impressed by this seemingly Menu where the application appears in full screen, and then if you open the menu appears in the Status Bar.

    试了下Paper的Facebook,我喜欢种整个菜单都在屏幕上显示的那个效果,通过从Status Bar下拉显示出来

    How To Use - 如何使用

    This is the most import piece of code: 以下是最为重要的代码:

        GTBackViewController *_back = [str instantiateViewControllerWithIdentifier:@"back"];
    
        self.backWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        self.backWindow.rootViewController = _back;
        [self.backWindow makeKeyAndVisible];
    
        GTAppMenuController *_front = [str instantiateViewControllerWithIdentifier:@"front"];
        self.frontWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        self.frontWindow.rootViewController = _front;
        self.frontWindow.windowLevel = UIWindowLevelStatusBar;
        [self.frontWindow makeKeyAndVisible];
    
    

    GTBackViewController is the UITableViewController with the cells. 

    GTBackViewController 是UITableViewController以及其cell的组合

    GTAppMenuController is a UINavigationController(Why? i don't know, I thought it was better to use a navigation controller) and this is the purple view that captures the event of swipe.

    GTAppMenuController 是一个UINavigationController(为什么?我也不知道,我想也许用导航栏控制器更合适)以及上图中的紫色的那个附带有swipe手势的view

    It just needs some help from you guys. After that, here's my list:

    当然,你也需要干些事情,以下是你需要做的事情:

    • When select a UITableViewCell push to other View (like Paper) 当选择了一个cell,push到其他view去
    • Testing 测试
  • 相关阅读:
    豆瓣电台WP7客户端 MVVM重构记录之使用MVVM Light实现Event绑定
    使用DotNetOpenAuth来实现有道云笔记的授权
    豆瓣电台WP7客户端 MVVM重构记录之总结
    使用Npgsql连接Postgres
    WPF自定义一个MessageBox
    字符集其实很简单
    pytest封神之路第六步 断言技巧
    pytest封神之路第七步 用例查找原理
    一文搞懂Cookie,Session,Token,JWT
    典藏版Web功能测试用例库
  • 原文地址:https://www.cnblogs.com/YouXianMing/p/4008584.html
Copyright © 2011-2022 走看看