mirror of
https://github.com/zhigang1992/FunctionalReactivePixels.git
synced 2026-01-12 22:47:31 +08:00
Slight refactoring for Photo View Model.
This commit is contained in:
@@ -51,10 +51,15 @@
|
||||
imageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[self.view addSubview:imageView];
|
||||
self.imageView = imageView;
|
||||
|
||||
[SVProgressHUD show];
|
||||
[[self.viewModel.didBecomeActiveSignal take:1] subscribeNext:^(id x) {
|
||||
[SVProgressHUD dismiss];
|
||||
}];
|
||||
}
|
||||
|
||||
-(void)viewDidAppear:(BOOL)animated {
|
||||
[super viewDidAppear:animated];
|
||||
-(void)viewWillAppear:(BOOL)animated {
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
self.viewModel.active = YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user