mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 22:20:41 +00:00
Add a warning if [super layout] is not called (which causes big problems for ASLayout.)
This commit is contained in:
parent
eb6aa28d42
commit
26dcad5218
@ -81,7 +81,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*
|
||||
* @discussion Subclasses override this method to layout all subnodes or subviews.
|
||||
*/
|
||||
- (void)layout;
|
||||
- (void)layout ASDISPLAYNODE_REQUIRES_SUPER;
|
||||
|
||||
/**
|
||||
* @abstract Called on the main thread by the view's -layoutSubviews, after -layout.
|
||||
|
@ -186,6 +186,7 @@
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
|
||||
[super layout];
|
||||
[self _layoutTextView];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user