测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可协议 | MIT |
发布日期最新发布 | 2017年3月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 [email protected] 维护。
要运行示例项目,请克隆仓库,然后从 Example 目录执行 pod install
命令。
WHPageCollectionView 可通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中:
pod "WHPageCollectionView"
//设置自定义表情/键盘布局
let layout = WHPageCollectionViewLayout()
//设置布局属性
layout.scrollDirection = .horizontal
layout.sectionInset = UIEdgeInsetsMake(10, 10, 10, 10)
//设置title标题格式
let style = WHPageStyle()
style.isShowBottomLine = true
//设置pageCollectionView的位置
let frame = CGRect(x: 0, y: 20, width: view.bounds.width, height: 300)
let page = WHPageCollectionView(frame: frame, titles: ["表情", "专属", "热门", "美女"], layout: layout, style: style, isTitleInTop: true)
//设置数据源
page.dataSource = self
view.addSubview(page)
//注册cell
page.register(cellClass: UICollectionViewCell.self, forCellWithReuseIdentifier: cellID)
wenhe-liu, [email protected]
WHPageCollectionView 适用于 MIT 许可协议。有关更多信息,请参阅 LICENSE 文件。