Merge pull request #818 from steveram/table-node

Modify ASTableNode initializer
This commit is contained in:
appleguy
2015-11-07 15:34:14 -08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;
} }