Parchment
Parchment copied to clipboard
After using PagingViewControllerInfiniteDataSource reloadData, the menu is displayed to the wrong position.
After using PagingViewControllerInfiniteDataSource reloadData, the menu is displayed to the wrong position. collectionView contentOffset is zero.
请问这个问题解决了吗?怎样处理的?我的是每次reloadData 之后,菜单无法回到最开始的index
请问这个问题解决了吗?怎样处理的?我的是每次reloadData 之后,菜单无法回到最开始的index
在 reloadData(around pagingItem: PagingItem)
之后调用 pagingController.viewAppeared()
可解决。
Hi @i-tengfei @beilusen! Sorry for the late response. When using PagingViewControllerInfiniteDataSource, you need to call reloadData(around pagingItem:)
instead of just reloadData
(see docs).