测试已测试 | ✓ |
语言语言 | Objective-CObjective C |
许可证 | MIT |
发布最后发布 | 2015年6月 |
由Steffen Neubauer维护。Steffen Neubauer.
一个UIViewController的分类,使其能够更改topLayoutGuide和bottomLayoutGuide的长度
对创建与半透明导航栏相关联的父子viewController关系很有用,例如具有半透明栏的UITabBarController
类似的控制器;以下是一个示例。
即使是automaticallyAdjustsScrollViewInsets
属性也尊重,就像UINavigationController一样。
只需导入 UIViewController+TTLayoutSupport.h
,您就可以通过 tt_topLayoutGuide
和 tt_bottomLayoutGuide
属性操纵 topLayoutGuide
和 bottomLayoutGuide
。
有关布局指南的设置和约束的更多信息,请参阅TTLayoutGuide文档。
要运行示例项目,先从仓库中克隆,然后从示例目录中先运行 pod install
。
支持iOS7至iOS8。需要ARC
Steffen Neubauer,[email protected]
TTLayoutSupport在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。