mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-06 12:43:58 +00:00
This ensures memory cleanup happens correctly and introduces a new test project to support developing new features while stressing tough use cases for correctness.
41 lines
661 B
Objective-C
41 lines
661 B
Objective-C
//
|
|
// ASTableNode.m
|
|
// AsyncDisplayKit
|
|
//
|
|
// Created by Steven Ramkumar on 11/4/15.
|
|
// Copyright © 2015 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import "ASTableNode.h"
|
|
|
|
@implementation ASTableNode
|
|
|
|
- (instancetype)initWithStyle:(UITableViewStyle)style
|
|
{
|
|
if (self = [super initWithViewBlock:^UIView *{
|
|
return [[ASTableView alloc] initWithFrame:CGRectZero style:style];
|
|
}]) {
|
|
return self;
|
|
}
|
|
return nil;
|
|
}
|
|
|
|
- (ASTableView *)view
|
|
{
|
|
return (ASTableView *)[super view];
|
|
}
|
|
|
|
- (void)clearContents
|
|
{
|
|
[super clearContents];
|
|
[self.view clearContents];
|
|
}
|
|
|
|
- (void)clearFetchedData
|
|
{
|
|
[super clearFetchedData];
|
|
[self.view clearFetchedData];
|
|
}
|
|
|
|
@end
|