Classes
The following classes are available globally.
-
This class is used as a expandable
UITableViewCell
forAEAccordionTableViewController
.Just subclass it and override setter of the
expanded
property to update UI based on this property.You can also override
See moresetExpanded:withCompletion:
in order to animate this UI update.Declaration
Swift
public class AEAccordionTableViewCell: UITableViewCell
-
This class is used for accordion effect in
UITableViewController
.Just subclass it and implement
See moretableView:heightForRowAtIndexPath:
(based on information inexpandedIndexPaths
property).Declaration
Swift
public class AEAccordionTableViewController: UITableViewController
-
This class is used for building nested XIB files (Xibception)
For example, imagine that we have next files:
- FirstView.swift, FirstView.xib
- SecondView.swift, SecondView.xib
- CustomCell.swift, CustomCell.xib
Our goal is to add FirstView and SecondView to CustomCell.xib, but to load these views from their XIB files instead from code.
These are the steps:
- FirstView and SecondView must inherit from
AEXibceptionView
- In their XIB files File’s Owner must be set to their class (
FirstView
,SecondView
) - In their XIB files root view should be connected to File’s Owner
contentView
property - In cell’s XIB file File’s Owner and Cell itself must be set to
CustomCell
class - Add views to CustomCell.xib and set their class to
FirstView
andSecondView
Declaration
Swift
public class AEXibceptionView: UIView