GBRootWrappingViewController 1.0.0

GBRootWrappingViewController 1.0.0

测试已测试
Lang语言 Obj-CObjective C
许可 Apache 2
发布最新发布2015年5月

Luka Mirosevic 维护。



  • 作者:
  • Luka Mirosevic

GBRootWrappingViewController  

为旧 UI 快速添加 iOS7+ 兼容性的根视图控制器包装器。

使用方法

application:didFinishLaunching:withOptions: 的某个地方...

// old code, which resulted in view controller that has now slid up 20px under the status bar
// self.window.rootViewController = self.tabBarViewController;

// new code which restores the pre iOS7 behaviour:
self.window.rootViewController = [[GBRootWrappingViewController alloc] initWithViewController:self.tabBarViewController];

不要忘了导入头文件

#import <GBRootWrappingViewController/GBRootWrappingViewController.h>

安装

使用 CocoaPods,将此添加到你的项目 Podfile 并运行 pod install

pod 'GBRootWrappingViewController'

版权 & 许可

版权 2015 Goonbee

根据Apache许可证版本2.0(“许可证”)授权;除非根据许可证规定或书面同意,否则不得使用此作品。您可以在LICENSE文件中获取许可副本,或者

https://apache.ac.cn/licenses/LICENSE-2.0

除非适用法律要求或书面同意,否则在许可证下分发软件按“现状”基本,不提供任何明示或暗示的保证或条件。有关许可证的具体语言管理权限和限制,请参阅许可证。