Resize CollectionView Cell during runtime without reloading

核能气质少年 提交于 2019-12-11 17:17:01

问题


For my app, it is necessary to resize a specific collectionview cell during runtime in order to fit the content size - just like .sizeToFit() but for collection view cells

However, so far I only found solutions on how to dynamically size each collection view cell on startup.

Is there any way to resize a collection view cell (in a smooth way) to fit the content size without reloading the whole collection view and losing all entered data?

I am using AutoLayout and no storyboards - a programatic approach would be helpful.

Any help would be appreciated!

来源:https://stackoverflow.com/questions/56925689/resize-collectionview-cell-during-runtime-without-reloading

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