1

我在 UICollectionView 中使用了 CustomCellClass。在 uilabel sizeToFit 中尝试此类,但不工作。

但是在 cellForItemAtIndexPath 方法中创建新的 uilabel ,可以正常工作。

如何在 CustomCellClass UILabel 中设置 SizeToFit UICollectionView;

谢谢。

4

1 回答 1

0

在 CustomCellClass 中弹出它layoutSubviews

于 2016-05-24T09:32:55.660 回答