阅读背景:

iOS UICollectionView原型单元格大小属性被忽略

来源:互联网 

I'm using a UICollectionView with two prototype cells. The prototype cells have different widths and contain different controls (image view and web view). I'm definitely returning the correct prototype cell for a given index (all the cells display the correct content), but the prototype cell size is ignored and the collection view's item size is used instead. It's not like I'm manually setting the size. What's the point of allowing the prototype cell to be sized in storyboard if the property is just ignored when it's actually displayed? I'm using a UICollectionView with two prototype




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: