FRLayeredNavigationController 0.4.4

FRLayeredNavigationController 0.4.4

测试已测试
语言语言 Obj-CObjective C
许可证 BSD
发布最后发布2014 年 12 月

Johannes Weiß 维护。



  • 作者
  • Johannes Weiß

FRLayeredNavigationController 是一个类似于 UINavigationController 的 iOS 容器视图控制器。受 Twitter 和 SoundCloud 的 iPad 应用程序的用户界面启发,用户会想到一张纸堆,并且有类似的交互选项。

官方项目主页: https://github.com/weissi/FRLayeredNavigationController

以下是如何将 FRLayeredNavigationController 添加到您的项目中(包括演示视频)的文档和说明。

如果您还有其他问题,请随意 邮件给我

Flattr this git repo

©2012, Johannes Weißfactis research GmbH

文档

特性

  • API 对于 iOS 开发者来说感觉非常自然,因为它的 API 与 UINavigationController 非常相似
  • FRLayeredNavigationController 使用 ARC(自动引用计数),但您也可以在您的旧项目中使用它而不启用 ARC
  • FRLayeredNavigationController 正确处理低内存条件和旋转
  • FRLayeredNavigationController 兼容 iPad、iPhone 和 iPod touch,但由于大屏幕,UI 构思在 iPad 上最佳
  • 您可以使用 CocoaPods 或手动安装 FRLayeredNavigationController(以下将提供演示视频和说明)
  • FRLayeredNavigationController 正确处理 view.frameview.bounds,因此在使用 view.transform(如旋转)时没有任何问题,如下所示 截图
  • 兼容 App Store(仅使用 Public API,已被 Apple 审批)

许可证

所有内容都是开源的,但您可以在您的商业产品中免费使用它。FRLayeredNavigationController 在修改后的 BSD 许可证条款下授权。

演示视频

截图

已知用户

RecordBox (App Store)

Checkpad MED

将 FRLayeredNavigationController 添加到您的项目中

FRLayeredNavigationController 编译为静态库。它使用 Xcode 的 "依赖项目" 功能。如果您熟悉 CocoaPods,请使用它,只需将 dependency 'FRLayeredNavigationController' 添加到您的 Podfile

以下是操作步骤: 估计时间: 5 分钟。

还有一个屏幕截图,显示如何将 FRLayeredNavigationController 添加到项目中的方法以及如何从 UINavigationController 切换到 FRLayeredNavigationController: http://youtu.be/k9bFAYtoenw .

  1. 克隆 FRLayeredNavigationController git 仓库: git clone [email protected]:weissi/FRLayeredNavigationController.git。请确保将存储库保存在永久位置,因为 Xcode 每编译项目一次都需要引用文件。

  2. 在 "FRLayeredNavigationController" 下找到 "FRLayeredNavigationController.xcodeproj" 文件。将 FRLayeredNavigationController.xcodeproj 拖动到 Xcode 项目的 "Groups and Files" 侧边栏的根目录上。

  3. 现在,您需要将 FRLayeredNavigationController 静态库链接到您的项目中。将 libFRLayeredNavigationController.a 添加到项目构建阶段的 Link Binary With Libraries 部分。

  4. 最后,我们需要告诉您的项目在哪里可以找到 FRLayeredNavigationController 标头。打开 "项目设置",然后转到 "构建" 选项卡。查找 "Header Search Paths",并双击它。添加从您的项目目录到 "FRLayeredNavigationController/" 目录的相对路径。

  5. 当您在项目设置中时,转到 "链接器" 部分下的 "其他链接器标志",并将 "-ObjC"、"-fobjc-arc" 和 "-all_load" 添加到标志列表中。

  6. 现在您可以开始使用了。只需在项目中任何您想使用 FRLayeredNavigationController 的地方使用 #import "FRLayeredNavigationController/FRLayeredNavigation.h" 即可。

如果您愿意,可以安装 appledoc 并在 FRLayeredNavigationController 的根目录中输入 appledoc . 以在 Xcode 中安装 API 文档。