AEAccordionTableViewController
This class is used for accordion effect in UITableViewController.
Just subclass it and implement tableView:heightForRowAtIndexPath:
(based on information in expandedIndexPaths property).
- 
                  
                  
Array of
NSIndexPathobjects for all of the expanded cells.Declaration
Swift
public var expandedIndexPaths = [NSIndexPath]() 
- 
                  
                  
Expand or collapse the cell.
Declaration
Swift
public func toggleCell(cell: AEAccordionTableViewCell, animated: Bool)Parameters
cellCell that should be expanded or collapsed.
animatedIf
trueaction should be animated. 
- 
                  
                  
AEAccordionTableViewControllerwill set cell to be expanded or collapsed without animation.Tells the delegate the table view is about to draw a cell for a particular row.
Declaration
Swift
public override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath)Parameters
tableViewThe table-view object informing the delegate of this impending event.
cellA table-view cell object that tableView is going to use when drawing the row.
indexPathAn index path locating the row in tableView.
 - 
                  
                  
AEAccordionTableViewControllerwill animate cell to be expanded or collapsed.Tells the delegate that the specified row is now deselected.
Declaration
Swift
public override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)Parameters
tableViewA table-view object informing the delegate about the row deselection.
indexPathAn index path locating the deselected row in tableView.
 
View on GitHub
        AEAccordionTableViewController Class Reference