Instance Method

presentationSectionIndex(forDataSourceSectionIndex:)

Translate a section index in your data source object to the equivalent section index in your presented layout.

Required.

Declaration

func presentationSectionIndex(forDataSourceSectionIndex dataSourceSectionIndex: Int) -> Int

Parameters

dataSourceSectionIndex

The index path of a section in the data source object.

Return Value

The index path of the same section in the presentation layer of your object, or nil if the section is not in the presentation layer.

See Also

Section Positions

func dataSourceSectionIndex(forPresentationSectionIndex: Int) -> Int

Translate a section index in your your presented layout to the equivalent section index in your data source object.

Required.