Page 标签导航分页控制
Installation
pod 'CaamDauPage'
pod 'CaamDau/Page'
Usage
PageControl 指示器
lazy var pageControl: PageControl = {
return PageControl<PageControlItem,PageControlBuoy>(itemConfig:PageControlItem.Model(), buoyConfig: PageControlBuoy.Model())
}()
pageControl.dataSource = (0..<3).map({ (i) -> PageControlItemDataSource in
var d = PageControlItemDataSource()
d.id = i.stringValue
d.title = "Title-\(i)"
return d
})
PageViewController 分页控制器
lazy var pageVC: PageViewController = {
return PageViewController()
}()
pageVC.dataSource = [RowVC<VC_PageA>(dataSource: "id", config: "config"),
RowVC<VC_PageB>(),
RowVC<VC_PageC>()]
pageVC.dataSource.append(RowVC<VC_PageA>())
pageVC.dataSource += [RowVC<VC_PageA>()]
pageVC.selectIndex = 2
Author
liucaide, [email protected]
License
CaamDau is available under the MIT license. See the LICENSE file for more info.