测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布日期上次发布 | 2014年12月 |
由 Peter Meyers 维护。
依赖关系 | |
PMUtils | >= 0 |
PMCircularCollectionView | >= 0 |
PMTabBarController 是一个 UITabBarController 的子类,使用任意数量的标签栏图标视图的环形滚动视图替换传统标签栏。
要安装,只需将以下行添加到您的 Podfile 中。
platform :ios, '7.0'
pod "PMTabBarController"
要查看 PMTabBarController 的运行效果,请运行 /Example/PMTabBarController-iOSExample.xcworkspace 中的示例项目。安装 PMTabBarController pod 后,集成到您的项目中就像这样简单:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
/* Instantiate viewController1, viewController2, etc... */
PMTabBarController *tbc = [PMTabBarController new];
tbc.viewControllers = @[viewController1, viewController2, viewController3, /*....*/];
tbc.tabViews = @[/*UIView tab for viewController1*/,
/*UIView tab for viewController2*/,
/*UIView tab for viewController3*/,
/*...*/];
tbc.tabBarBackgroundColor = [UIColor colorWithWhite:0.0f alpha:0.3f];
tbc.tabBarShadowRadius = 20.0f;
tbc.minimumTabBarSpacing = 30.0f;
[self.window setRootViewController:tbc];
return YES;
}
PMTabBarController 可在 MIT 许可证下获得。有关更多信息,请参阅 LICENSE 文件。