How to adjust the spacing between sections of collection view.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
Try this:
This is a layout issue, thus the answer will be in whatever layout you're using for the collection view. If you're using
UICollectionViewFlowLayout
then you'll want to set thesectionInset
. e.g.You can use the method to implement this:
Header height can be adjusted by adjusting the params of the collection view layout. Following is the code which works perfectly fine.