Edit

Share via


UICollectionViewController.NumberOfSections(UICollectionView) Method

Definition

The number of sections in the UICollectionView.

[Foundation.Export("numberOfSectionsInCollectionView:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual nint NumberOfSections (UIKit.UICollectionView collectionView);
abstract member NumberOfSections : UIKit.UICollectionView -> nint
override this.NumberOfSections : UIKit.UICollectionView -> nint

Parameters

collectionView
UICollectionView

Collection view managed by this view controller.

Returns

System.System.IntPtr System.nativeint

The number of sections, as an int.

Attributes

Applies to