如何使用swift在UICollectionView
中添加'拉動刷新'/'加載更多'功能? (用於垂直和水平)如何使用swift在UICollectionView中添加'Pull to refresh'/'Load more'? (用於垂直和水平)
任何庫都可用於它?
如何使用swift在UICollectionView
中添加'拉動刷新'/'加載更多'功能? (用於垂直和水平)如何使用swift在UICollectionView中添加'Pull to refresh'/'Load more'? (用於垂直和水平)
任何庫都可用於它?
喜無法找到任何可用於UICollectionView的庫,可用於縱向和橫向加載更多。所以我爲它創建了一個示例代碼。在這裏檢查代碼。 https://github.com/arunpkumar92/InfiniteUICollectionView
是的,有一個圖書館
https://github.com/entotsu/PullToBounce
你必須包裹的CollectionView或表所有
// Please wrap your scroll view
collectionView.frame = yourFrame
let collectionWrapper = PullToBounceWrapper(scrollView: collectionView)
// Please add wrapper view to your view instead of your scroll view.
bodyView.addSubview(collectionViewWrapper)
查看庫工程參考文檔的詳細README.md
這隻能選擇在上面添加裝載機,我還需要在博特裝載機。同樣在UICollectionView –
中橫向如果你想在所有方面更好地引用代碼和修改代碼 –