123456789101112131415161718192021222324252627282930313233343536 |
- //
- // RQMainTabBarViewModel.m
- // RQCommon
- //
- // Created by 张嵘 on 2018/11/21.
- // Copyright © 2018 张嵘. All rights reserved.
- // 主界面的视图的视图模型
- #import "RQMainTabBarViewModel.h"
- @interface RQMainTabBarViewModel ()
- /// The view model of `HomePage` interface.
- @property (nonatomic, strong, readwrite) RQHomePageViewModel *homePageViewModel;
- /// The view model of `secondPage` interface.
- @property (nonatomic, strong, readwrite) RQSecondPageViewModel *secondPageViewModel;
- /// The view model of `thirdPage` interface.
- @property (nonatomic, strong, readwrite) RQThirdPageViewModel *thirdPageViewModel;
- /// The view model of `fourthPage` interface.
- @property (nonatomic, strong, readwrite) RQFourthPageViewModel *fourthPageViewModel;
- @end
- @implementation RQMainTabBarViewModel
- - (void)initialize {
- [super initialize];
-
- self.homePageViewModel = [[RQHomePageViewModel alloc] initWithServices:self.services params:nil];
- self.secondPageViewModel = [[RQSecondPageViewModel alloc] initWithServices:self.services params:nil];
- self.thirdPageViewModel = [[RQThirdPageViewModel alloc] initWithServices:self.services params:nil];
- self.fourthPageViewModel = [[RQFourthPageViewModel alloc] initWithServices:self.services params:nil];
- }
- @end
|