Skip to content

常见的UICollectionViewLayout布局,分组背景色、行对齐、Excel表格等。

Notifications You must be signed in to change notification settings

xueyongwei/YRCollectionViewLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YRCollectionViewLayout

常见的UICollectionViewLayout布局,分组背景色、行对齐、Excel表格等。

布局使用方法

  1. 下载layout文件,拷贝进工程。
  2. 创建layout:
let layout = YRSectionBgColorFlowLayout()
  1. 创建CollectionView(Controller):
let vc = YRbgcCollectionViewController.init(collectionViewLayout: layout)
  1. DONE

效果展示

Gif图不动的话,可能是网络慢等一下。 如果后面的图不动了,是因为gif播放完了,刷新一下查看动画。

分组背景色、圆角等

效果

可以通过实现代理完成:背景色、圆角大小、四周扩展的个性化定制。

改变每一行的对齐方式(等间距)

【居中】 居中

【居左】 居左

【居右】 居右

Excel的表格锁定行列、类似tableView的headerView

【锁定列】 锁定列

【锁定行】 锁定行

About

常见的UICollectionViewLayout布局,分组背景色、行对齐、Excel表格等。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages