AEAccordionTableViewCell

This class is used as a expandable UITableViewCell for AEAccordionTableViewController.

Just subclass it and override setter of the expanded property to update UI based on this property.

You can also override setExpanded:withCompletion: in order to animate this UI update.

  • Flag which tells if the cell is expanded.

    Declaration

    Swift

    public private(set) var expanded = false
  • Public setter of the expanded property (this should be overriden by a subclass for custom UI update)

    Declaration

    Swift

    public func setExpanded(expanded: Bool, animated: Bool)

    Parameters

    expanded

    true if the cell should be expanded, false if it should be collapsed.

    animated

    If true action should be animated.