mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
ASCellNode selected/highlighted properties
This commit is contained in:
parent
281a355ffd
commit
8557d65104
@ -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.
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user