A-A+

ColorMatchTabs

2016年08月08日 选项卡(Tab Bar) 暂无评论 阅读 1,014 views 次

ColorMatchTabs

 

Inspired by this project on Dribbble

 

Requirements

  • iOS 9.0
  • Swift 2.2

 

How to use

To setup and customize the component you should implement ColorMatchTabsViewControllerDataSource forColorMatchTabsViewController.

public protocol ColorMatchTabsDataSource: class {

    func numberOfItems(inController controller: ColorMatchTabsViewController) -> Int

    func tabsViewController(controller: ColorMatchTabsViewController, viewControllerAt index: Int) -> UIViewController

    func tabsViewController(controller: ColorMatchTabsViewController, titleAt index: Int) -> String
    func tabsViewController(controller: ColorMatchTabsViewController, iconAt index: Int) -> UIImage
    func tabsViewController(controller: ColorMatchTabsViewController, hightlightedIconAt index: Int) -> UIImage
    func tabsViewController(controller: ColorMatchTabsViewController, tintColorAt index: Int) -> UIColor

}

 

 

To customize popup view controller create a subclass of PopoverViewController and set it in the view controller:

tabsViewController.popoverViewController = ExamplePopoverViewController()

 

 

Githubhttps://github.com/Yalantis/ColorMatchTabs

 

yal

给我留言

Copyright © iOSCodeHub 保留所有权利.  

用户登录 ⁄ 注册

分享到: