ASCellNode selected/highlighted properties

This commit is contained in:
Vitaly Baev 2015-10-15 13:25:12 +03:00
parent 281a355ffd
commit 8557d65104
2 changed files with 19 additions and 0 deletions

View File

@ -43,6 +43,16 @@
//@property (atomic, retain) UIColor *backgroundColor; //@property (atomic, retain) UIColor *backgroundColor;
@property (nonatomic) UITableViewCellSelectionStyle selectionStyle; @property (nonatomic) UITableViewCellSelectionStyle selectionStyle;
/*
* A Boolean value that indicates whether the node is selected.
*/
@property (nonatomic, assign) BOOL selected;
/*
* A Boolean value that indicates whether the node is highlighted.
*/
@property (nonatomic, assign) BOOL highlighted;
/* /*
* ASCellNode must forward touch events in order for UITableView and UICollectionView tap handling to work. Overriding * ASCellNode must forward touch events in order for UITableView and UICollectionView tap handling to work. Overriding
* these methods (e.g. for highlighting) requires the super method be called. * these methods (e.g. for highlighting) requires the super method be called.

View File

@ -135,6 +135,15 @@ static BOOL _isInterceptedSelector(SEL sel)
[super didTransitionToState:state]; [super didTransitionToState:state];
} }
- (void)setSelected:(BOOL)selected
{
_node.selected = selected;
}
- (void)setHighlighted:(BOOL)highlighted {
_node.highlighted = highlighted;
}
@end @end