Instance Method

numberOfItemsInSection:

Returns the number of items in the specified section of the snapshot.

Declaration

- (NSInteger)numberOfItemsInSection:(SectionIdentifierType)sectionIdentifier;

Parameters

sectionIdentifier

The identifier of the section of the snapshot.

Return Value

The number of items in the specified section. This method returns 0 if the section is empty.

Discussion

If you call this method with the identifier of a section that doesn’t exist in the snapshot, the app throws an error.

See Also

Getting Item and Section Metrics

numberOfItems

The number of items in the snapshot.

numberOfSections

The number of sections in the snapshot.