[英]How can I implement the side alphabetic view in apple's music app in swift? Which used to sort the items in the list in alphabetic order
我已經使用集合視圖實現了一個項目列表,我希望有一個與 Apple Music 應用程序類似的“側面字母視圖”,以便我可以按字母順序滾動列表中的項目。
蘋果音樂應用 | 到目前為止我的應用程序 |
---|---|
在您的集合視圖數據源中,實現方法indexTitles(for:)
和collectionView(_:indexPathForIndexTitle:at:)
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.