stackoverflow上的答案 点击打开链接
比较简单的实现方法是重写布局,使用 layoutAttributesForDecorationViewOfKind:atIndexPath 方法
http://www.ericjchapman.com/ios-changing-the-section-background-color-in-a-uicollectionview.html上面介绍的很详细
stackoverflow上的答案 点击打开链接
比较简单的实现方法是重写布局,使用 layoutAttributesForDecorationViewOfKind:atIndexPath 方法
http://www.ericjchapman.com/ios-changing-the-section-background-color-in-a-uicollectionview.html上面介绍的很详细