ZBViewSectionBackgroundDemo
UITableView implements a section with background color and section rounded corners Demo
UICollectionView implements section section with background color and headerView rounded corners Demo
Don’t talk nonsense, you can tell at a glance:
Demo link
github: ZBViewSectionBackgroundDemo