mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-12 09:47:02 +08:00
array must be init'd otherwise arrayByAddingObject returns nil.
This commit is contained in:
@@ -44,6 +44,11 @@
|
||||
return [[self alloc] initWithChildren:children];
|
||||
}
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
return [self initWithChildren:@[]];
|
||||
}
|
||||
|
||||
- (instancetype)initWithChildren:(NSArray *)children
|
||||
{
|
||||
if (!(self = [super init])) {
|
||||
|
||||
Reference in New Issue
Block a user