Add nullability annotations to newer APIs that lacked it from the original PR.

This commit is contained in:
Scott Goodson
2015-12-25 15:35:52 -08:00
parent 882d4b336e
commit c6fa897dc2
4 changed files with 8 additions and 8 deletions

View File

@@ -18,12 +18,14 @@
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
return [self initWithNode:nil];
ASDisplayNodeAssert(NO, @"ASViewController requires using -initWithNode:");
return [self initWithNode:[[ASDisplayNode alloc] init]];
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
return [self initWithNode:nil];
ASDisplayNodeAssert(NO, @"ASViewController requires using -initWithNode:");
return [self initWithNode:[[ASDisplayNode alloc] init]];
}
- (instancetype)initWithNode:(ASDisplayNode *)node