Use the method form for UIViewController.isViewLoaded, since it is supported by Xcode 7.3.1

This commit is contained in:
Adlai Holler
2016-11-28 11:12:22 -08:00
parent 02283bd0d6
commit 82e1c5bf0b

View File

@@ -68,7 +68,7 @@
// before the view controller
__weak __typeof__(self) weakSelf = self;
[_node onDidLoad:^(__kindof ASDisplayNode * _Nonnull node) {
if (weakSelf.viewLoaded == NO) {
if ([weakSelf isViewLoaded] == NO) {
[weakSelf view];
}
}];