我在UICollectionView中使用了CustomCellClass。在uilabel sizeToFit中尝试这个类,但不起作用。
但是在cellForItemAtIndexPath方法中创建新的uilabel,工作。
如何在CustomCellClass UILabel中设置SizeToFit UICollectionView;
谢谢。
发布于 2016-05-24 17:32:56
在CustomCellClass layoutSubviews中弹出它。
https://stackoverflow.com/questions/15942585
复制相似问题