[翻译] 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 测试
最新文章
- jquery 控件赋值
- Resellerclub –Cpanel 主机中如何设置 index 缺省首页
- SQLServer事务
- Java Map 集合类简介
- TYVJ P1088 treat Label:鞭笞人的DP
- 关于HTTP GET请求的url中文参数编码
- js 定时器的使用。 setInterval()
- source 命令
- 244. Shortest Word Distance II
- 嵌入式Linux-linux连接脚本
- SqlServer 挂载本地盘符到服务器端,方面备份还原
- VC调用javascript的几种方法
- js 自己容易搞混的笔记查询
- Sqlite in Android
- Sipdroid实现SIP(六): SIP中的请求超时和重传
- Loadrunner 网页诊断图
- jstl--->;Core 核心标签库->;流程控制
- java枚举细节
- Java实现 中文转换成Unicode编码 和 Unicode编码转换成中文
- Android UI(五)云通讯录项目之联系人列表,带侧滑选择,带搜索框