mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-06 22:33:10 +00:00
parent
f200f9504a
commit
6bc94190e8
@ -26,6 +26,10 @@
|
|||||||
|
|
||||||
- (void)display
|
- (void)display
|
||||||
{
|
{
|
||||||
|
if (![self __shouldLoadViewOrLayer]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ASDisplayNodeAssertMainThread();
|
ASDisplayNodeAssertMainThread();
|
||||||
ASDisplayNodeAssert(self.nodeLoaded, @"backing store must be loaded before calling -display");
|
ASDisplayNodeAssert(self.nodeLoaded, @"backing store must be loaded before calling -display");
|
||||||
|
|
||||||
@ -45,6 +49,10 @@
|
|||||||
|
|
||||||
- (void)recursivelyDisplay
|
- (void)recursivelyDisplay
|
||||||
{
|
{
|
||||||
|
if (![self __shouldLoadViewOrLayer]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (ASDisplayNode *node in self.subnodes) {
|
for (ASDisplayNode *node in self.subnodes) {
|
||||||
[node recursivelyDisplay];
|
[node recursivelyDisplay];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user