TTLayoutSupport 0.4.0

TTLayoutSupport 0.4.0

测试已测试
语言语言 Objective-CObjective C
许可证 MIT
发布最后发布2015年6月

由Steffen Neubauer维护。Steffen Neubauer.



一个UIViewController的分类,使其能够更改topLayoutGuide和bottomLayoutGuide的长度

对创建与半透明导航栏相关联的父子viewController关系很有用,例如具有半透明栏的UITabBarController类似的控制器;以下是一个示例

即使是automaticallyAdjustsScrollViewInsets属性也尊重,就像UINavigationController一样。

Screenshot of example

使用方法

只需导入 UIViewController+TTLayoutSupport.h,您就可以通过 tt_topLayoutGuidett_bottomLayoutGuide 属性操纵 topLayoutGuidebottomLayoutGuide

有关布局指南的设置和约束的更多信息,请参阅TTLayoutGuide文档

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

要求

支持iOS7至iOS8。需要ARC

安装

作者

Steffen Neubauer,[email protected]

许可证

TTLayoutSupport在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。