项目介绍:
Usage
import TabPageViewController to use TabPageViewController in your file.
Example
[Objective-C] 查看源文件 复制代码
let tabPageViewController = TabPageViewController.create() let vc1 = UIViewController() let vc2 = UIViewController() tabPageViewController.tabItems = [(vc1, "First"), (vc2, "Second")] TabPageOption.currentColor = UIColor.redColor()
Infinity Mode
[Objective-C] 查看源文件 复制代码
let tabPageViewController = TabPageViewController.create() tabPageViewController.isInfinity = true
Requirements
iOS8+
InstallationUsing CocoaPods
[Objective-C] 查看源文件 复制代码
use_frameworks! pod "TabPageViewController"
Using Carthage
[Objective-C] 查看源文件 复制代码
github "EndouMari/TabPageViewController"
Customization
Use TabPageOption
- fontSize for tab item
fontSize: CGFloat
- currentColor for current tab item
currentColor: UIColor
- defaultColor for tab item
defaultColor: UIColor
- tabBarAlpha for tab view
tabBarAlpha: CGFloat
- tabHeight for tab view
tabHeight: CGFloat
- tabMargin for tab item
tabMargin: CGFloat
- tabBackgroundColor for tab view
tabBackgroundColor: UIColor
- pageBackgoundColor for tab page viewcontroller
pageBackgoundColor: UIColor
DEMO 直接下载: