共用方式為


UICollectionViewFlowLayout.ItemSize 屬性

定義

所顯示 的預設 UICollectionViewCell 大小。

public virtual CoreGraphics.CGSize ItemSize { [Foundation.Export("itemSize")] get; [Foundation.Export("setItemSize:")] set; }
member this.ItemSize : CoreGraphics.CGSize with get, set

屬性值

預設值是 {50,50}。

屬性

備註

可以使用 方法自訂 GetSizeForItem(UICollectionView, UICollectionViewLayout, NSIndexPath)

適用於