[ASTableNode/ASCollectionNode] Inversion (#2891)

* Add inverted property to ASTableNode

* Add inverted property to ASCollectionNode

* Add example

* De-inform data controller and use different CATransform3D

* Add logic to pending state

* Add accessor for inverted property
This commit is contained in:
aaronschubert0
2017-01-20 02:16:01 +00:00
committed by Adlai Holler
parent e69a475d2b
commit b3be451486
53 changed files with 1746 additions and 13 deletions

View File

@@ -35,6 +35,11 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) id <ASTableDelegate> delegate;
@property (weak, nonatomic) id <ASTableDataSource> dataSource;
/*
* A Boolean value that determines whether the table will be flipped.
* If the value of this property is YES, the first cell node will be at the bottom of the table (as opposed to the top by default). This is useful for chat/messaging apps. The default value is NO.
*/
@property (nonatomic, assign) BOOL inverted;
/*
* A Boolean value that determines whether users can select a row.
* If the value of this property is YES (the default), users can select rows. If you set it to NO, they cannot select rows. Setting this property affects cell selection only when the table view is not in editing mode. If you want to restrict selection of cells in editing mode, use `allowsSelectionDuringEditing`.