+ (instancetype)sharedInstance{
static __weak FPPhotosDataManger *instance;
FPPhotosDataManger *strongInstance = instance;
@synchronized (self) {
if (strongInstance == nil) {
strongInstance = [[self alloc] init];
instance = strongInstance;
}
}
return strongInstance;
}
[RACObserve(self, viewModel.dataManager.count) subscribeNext:^(id _Nullable x) {
@strongify(self)
[self XXXX];
}];
暂未有有效的解决方案
网友评论