This repository was archived by the owner on Feb 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ typedef UIView * _Nonnull(^ASDisplayNodeViewBlock)();
2727/* *
2828 * UIView creation block. Used to create the backing view of a new display node.
2929 */
30- typedef UIViewController *(^ASDisplayNodeViewControllerBlock)();
30+ typedef UIViewController * _Nonnull (^ASDisplayNodeViewControllerBlock)();
3131
3232/* *
3333 * CALayer creation block. Used to create the backing layer of a new display node.
Original file line number Diff line number Diff line change @@ -361,9 +361,7 @@ NS_ASSUME_NONNULL_BEGIN
361361
362362@end
363363
364- <<<<<<< HEAD
365- NS_ASSUME_NONNULL_END
366- =======
367- @protocol ASTableViewDelegate <ASTableDelegate>;
364+ @protocol ASTableViewDelegate <ASTableDelegate>
368365@end
369- >>>>>>> master
366+
367+ NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ @implementation ASViewController
1818
1919- (instancetype )initWithNibName : (NSString *)nibNameOrNil bundle : (NSBundle *)nibBundleOrNil
2020{
21- return [self initWithNode: nil ];
21+ ASDisplayNodeAssert (NO , @" ASViewController requires using -initWithNode:" );
22+ return [self initWithNode: [[ASDisplayNode alloc ] init ]];
2223}
2324
2425- (instancetype )initWithCoder : (NSCoder *)aDecoder
2526{
26- return [self initWithNode: nil ];
27+ ASDisplayNodeAssert (NO , @" ASViewController requires using -initWithNode:" );
28+ return [self initWithNode: [[ASDisplayNode alloc ] init ]];
2729}
2830
2931- (instancetype )initWithNode : (ASDisplayNode *)node
You can’t perform that action at this time.
0 commit comments