mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
Don't expose hierarchy notifs in public node API.
`-[ASDisplayNode willEnterHierarchy]` and `-didExitHierarchy` are subclass hooks and should not be called directly -- doing so will trigger an assertion! Move these declarations to the subclassing header.
This commit is contained in:
parent
20631a632f
commit
a82364a54b
@ -262,7 +262,17 @@
|
|||||||
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event;
|
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event;
|
||||||
|
|
||||||
|
|
||||||
/** Description */
|
/** @name Observing node-related changes */
|
||||||
|
|
||||||
|
|
||||||
|
// Called just before the view is added to a superview.
|
||||||
|
- (void)willEnterHierarchy;
|
||||||
|
|
||||||
|
// Called after the view is removed from the window.
|
||||||
|
- (void)didExitHierarchy;
|
||||||
|
|
||||||
|
|
||||||
|
/** @name Description */
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -239,16 +239,6 @@
|
|||||||
@property (nonatomic, readonly, assign) ASDisplayNode *supernode;
|
@property (nonatomic, readonly, assign) ASDisplayNode *supernode;
|
||||||
|
|
||||||
|
|
||||||
/** @name Observing node-related changes */
|
|
||||||
|
|
||||||
|
|
||||||
// Called just before the view is added to a superview.
|
|
||||||
- (void)willEnterHierarchy;
|
|
||||||
|
|
||||||
// Called after the view is removed from the window.
|
|
||||||
- (void)didExitHierarchy;
|
|
||||||
|
|
||||||
|
|
||||||
/** @name Drawing and Updating the View */
|
/** @name Drawing and Updating the View */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user