RSDTableSection

open class RSDTableSection

Defines a section in a table. A table is made up of sections, groups, and items.

For most group types, there is one cell per group and there can be one or more groups per section. However, there are exceptions such as multiple-choice lists where each value is displayed in a selectable table item.

  • A unique identifier for the section.

    Declaration

    Swift

    public let identifier: String
  • The list of items included in this section.

    Declaration

    Swift

    open private(set) var tableItems: [RSDTableItem] {
      get
      }
  • The table section index.

    Declaration

    Swift

    open private(set) var index: Int {
      get
      }
  • The title for this section.

    Declaration

    Swift

    public var title: String?
  • The subtitle for this section.

    Declaration

    Swift

    public var subtitle: String?
  • Returns the total count of all Items in this section.

    Declaration

    Swift

    open func rowCount() -> Int

    Return Value

    The total number of RSDTableItems in this section.

  • Default initializer.

    Declaration

    Swift

    public init(identifier: String, sectionIndex: Int, tableItems: [RSDTableItem])

    Parameters

    sectionIndex

    The table section index for this item.

    tableItems

    The table items in this section.

  • Declaration

    Swift

    open var description: String { get }
  • Declaration

    Swift

    public static func == (lhs: RSDTableSection, rhs: RSDTableSection) -> Bool