UICollectionView fall back to UIScrollView

我与影子孤独终老i 提交于 2019-12-08 05:52:12

问题


I spent so much time implementing a collection view and subclassed UICollectionViewLayout only to find a bug in iOS 6 which makes cells disappear while scrolling if the cell is very large in size.

Large UICollectionViewCell's disappearing with custom layout

I am unable to find a solution so far, but I realize I may be able to do with just a UIScrollView instead of a UICollectionView and do not need cell reuse. Is there an obvious way to convert existing UICollectionView to a normal UIScrollView ? Of course, I can write my own UIScrollView subclass from scratch but that would mean a lot of work again.


回答1:


I solved my problem using an alternative implementation of UICollectionView called PSTCollectionView :

https://github.com/steipete/PSTCollectionView



来源:https://stackoverflow.com/questions/18207111/uicollectionview-fall-back-to-uiscrollview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!