CBFlashyTabBarController
示例
要运行示例项目,克隆仓库,然后从 FlashyTabBar.xcodeproj 中运行 ExampleApp
模式。
要求
- iOS 10.0+
- Xcode 9
安装
CocoaPods
要安装 Flashy TabBar,请在 Podfile 中添加以下行:
pod 'CBFlashyTabBarController'
然后运行 pod install
。
Carthage
在 Cartfile 中添加以下条目
github "Cuberto/flashy-tabbar"
然后运行 carthage update
。
如果您是第一次在项目中使用 Carthage,需要按照 Carthage 的说明完成一些额外的步骤,详情请参考 Carthage。
手动安装
将 CBFlashyTabBarController 文件夹添加到您的项目中
使用方法
使用 Storyboard
-
在 storyboard 或 nib 中创建一个新的 UITabBarController
-
在 Storyboard 或 nib 中将 UITabBarController 的类设置为 CBFlashyTabBarController
-
为每个子 ViewController 的 UITabBarItem 添加自定义图标和标题
不使用 Storyboard
- 导入 CBFlashyTabBarController
- 实例化
CBFlashyTabBarController
- 添加一些子控制器,并确保为它们设置具有标题和图标的 tabBar 项
作者
Cuberto Design, [email protected]
许可
CBFlashyTabBarController遵守MIT许可证。更多信息请查阅LICENSE文件。