Commit 952fd91e authored by 李震's avatar 李震

viewModel调用get方法

parent 8f1e22c4
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
if ([keyPath isEqualToString:@"fetchDataSuccess"] && object == self.viewModel) { if ([keyPath isEqualToString:@"fetchDataSuccess"] && object == self.viewModel) {
[self hideLoading]; [self hideLoading];
_collectionView.hidden = NO; _collectionView.hidden = NO;
if ([[_viewModel fetchDataSuccess] boolValue]) { if ([[self.viewModel fetchDataSuccess] boolValue]) {
if ([[self.viewModel dataArray] count] == 0 && [self.viewModel fetchDataNilMsg]) { if ([[self.viewModel dataArray] count] == 0 && [self.viewModel fetchDataNilMsg]) {
[self showEmptyView:GMEmptyViewTypeEmpty]; [self showEmptyView:GMEmptyViewTypeEmpty];
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment