WSTabBarController 0.0.4

WSTabBarController 0.0.4

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2016年9月
SPM支持 SPM

Maintained by Chisj.



  • By
  • Chisj

WSTabBarController

       

用 Swift 编写的具有发布按钮的自定义 TabBarController。

screenShot

两个标签页

screenShot2

三个标签页

screenShot3

需求

  • iOS 8.0+
  • Swift 2.2

安装

pod "WSTabBarController"

用法

import WSTabBarController

tabbarController = WSTabBarController(publishButtonConfig: {b in

                //set your publish button like size,image,etc.
            }, publishButtonClick: { b in 

                print("publish button clicked")
            })

然后就像使用 UITabBarController 一样使用它。

自定义发布按钮索引

screenShot4

maintabbarController = WSTabBarController(publishButtonConfig: {b in

                //set your publish button like size,image,etc.
            }, publishButtonClick: { b in 
                print("publish button clicked")
            }, publishButtonIndex: 0)

关于用法,请参阅示例项目。

尽情享受! :)

作者

Chisj, [email protected]

许可证

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