8000 GitHub - devhuang0714/HYPageView: HYPageView
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

devhuang0714/HYPageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HYPageView

创建方式

// titles:标题数组  
// childVCs:每个标题对应要显示的控制器  
// parentVC:标题控制器对应的父控制器
// titleStyle: 控制器标题的样式
let pageView = HYPageView.init(frame: view.bounds, titles: titles, childVCs: childVCs, parentVC: self, titleStyle: titleStyle)
view.addSubview(pageView)
// 设置样式
let titleStyle = HYTitleStyle()
titleStyle.hasScrollLine = true

type_01

// 设置样式
titleStyle.hasScrollLine = true
titleStyle.lineScrollType = .RealTime

type_02

// 设置样式
titleStyle.hasGradient = true
// titleStyle.selectedColor = UIColor(red: 1.0, green: 0.5, blue: 0, alpha: 1.0)

type_03

// 设置样式
titleStyle.hasGradient = true
titleStyle.selectedFont = UIFont.systemFont(ofSize: 16)

type_04

About

HYPageView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0