mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge pull request #818 from steveram/table-node
Modify ASTableNode initializer
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
@interface ASTableNode : ASDisplayNode
|
@interface ASTableNode : ASDisplayNode
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style asyncDataFetching:(BOOL)asyncDataFetchingEnabled NS_DESIGNATED_INITIALIZER;
|
- (instancetype)initWithStyle:(UITableViewStyle)style NS_DESIGNATED_INITIALIZER;
|
||||||
|
|
||||||
@property (nonatomic, readonly) ASTableView *view;
|
@property (nonatomic, readonly) ASTableView *view;
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
|
|
||||||
@implementation ASTableNode
|
@implementation ASTableNode
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style asyncDataFetching:(BOOL)asyncDataFetchingEnabled
|
- (instancetype)initWithStyle:(UITableViewStyle)style
|
||||||
{
|
{
|
||||||
if (self = [super initWithViewBlock:^UIView *{
|
if (self = [super initWithViewBlock:^UIView *{
|
||||||
return [[ASTableView alloc] initWithFrame:frame style:style asyncDataFetching:asyncDataFetchingEnabled];
|
return [[ASTableView alloc] initWithFrame:CGRectZero style:style];
|
||||||
}]) {
|
}]) {
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user