BAHFourCornersController 版本 0.1.1

BAHFourCornersController 版本 0.1.1

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
Released最新发布2015 年 4 月

Brad Hughes 维护。




  • BHughes3388

用法

要运行示例项目,首先克隆仓库,然后在 Example 目录中运行 pod install

要求

在 IOS 8 上运行流畅

需要对低版本 IOS 8 的方向检测进行一些工作

预览

安装

BAHFourCornersController 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中

pod "BAHFourCornersController"

配置

将库导入到 AppDelegate 中

#import "BAHFourCornersViewController.h"

获取到 BAHFourCornersViewController 的引用或在 initialize 方法中将其添加到 Self.window.rootViewController

BAHFourCornersViewController *fourCorners = (BAHFourCornersViewController*)Self.window.rootViewController;

使用以下代码构建您的视图控制器并设置为特定角落:

[fourCorners setTopLeftViewController:UIViewController];

使用以下代码构建和添加按钮:

[fourCorners setTopLeftButton:button1];

最后,用以下方式初始化 Four Corners:

[fourCorners initalizeFourCorners];

查看 BAHFourCornersViewController.h 了解更多设置配置,包括按钮大小、内边距、图像内边距等。

作者

BHughes3388, [email protected]

许可证

BAHFourCornersController 依据 MIT 许可证提供。详见 LICENSE 文件。