How do you set up a collectionView to page horizontally by SECTION much like the native emoji keyboard on iPhone?
So I want the sections to scroll vertically which is working fine, but then if the user swipes the screen left they page to the next SECTION of the collectionView
Also in the toolbar below the collectionView I want the buttons when tapped to take the user to the particular section of the collectionView too. And if the user swipes left to a new SECTION the corresponding button in the toolbar under the collection view highlights also.
Thanks
Use this option:
collectionView.isPagingEnabled = true
Note that the size of each page is the size of frame which you set as the frame of collectionView
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.