Use nonnull annotation, instead of sanity check, for node property in ASViewController.

This commit is contained in:
Huy Nguyen
2015-09-16 23:36:19 +03:00
parent 72d108cd98
commit fcd76dbd19
3 changed files with 5 additions and 6 deletions

View File

@@ -7,12 +7,12 @@
//
#import <UIKit/UIKit.h>
#import <AsyncDisplayKit/AsyncDisplayKit.h>
#import <AsyncDisplayKit/ASDisplayNode.h>
@interface ASViewController : UIViewController
@property (nonatomic, strong, readonly) ASDisplayNode *node;
@property (nonatomic, strong, readonly, nonnull) ASDisplayNode *node;
- (instancetype)initWithNode:(ASDisplayNode *)node;
- (nullable instancetype)initWithNode:(nonnull ASDisplayNode *)node;
@end
@end