简体   繁体   中英

UICollectionView with Sticky horizontal indicator Swift 3.0

当我来回滚动时,我想为UICollectionView设置粘性水平滚动指示器。

UICollectionView inherits from UIScrollView . There's no easy way to always show the scroll indicator. The indicator is visible while tracking is underway and fades out after tracking.

You can flash the indicators using collectionView.flashScrollIndicators() to show the user that they exist.

Otherwise, you can for example create a custom UICollectionView or extend UIScrollView to create your own indicators that's always visible.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM