1234567891011121314151617181920212223242526272829303132 |
- //
- // RQMainTabBarViewModel.m
- // RQCommon
- //
- // Created by 张嵘 on 2018/11/21.
- // Copyright © 2018 张嵘. All rights reserved.
- // 主界面的视图的视图模型
- #import "RQMainTabBarViewModel.h"
- @interface RQMainTabBarViewModel ()
- /// The view model of `MainFrame` interface.
- @property (nonatomic, strong, readwrite) RQHomePageViewModel *homePageViewModel;
- /// The view model of `Time` interface.
- @property (nonatomic, strong, readwrite) RQTimeViewModel *timeViewModel;
- /// The view model of `Discover` interface.
- @property (nonatomic, strong, readwrite) RQDiscoverViewModel *discoverViewModel;
- /// The view model of `Profile` interface.
- @property (nonatomic, strong, readwrite) RQProfileViewModel *profileViewModel;
- @end
- @implementation RQMainTabBarViewModel
- - (void)initialize {
- [super initialize];
-
- self.homePageViewModel = [[RQHomePageViewModel alloc] initWithServices:self.services params:nil];
- self.timeViewModel = [[RQTimeViewModel alloc] initWithServices:self.services params:nil];
- self.discoverViewModel = [[RQDiscoverViewModel alloc] initWithServices:self.services params:nil];
- self.profileViewModel = [[RQProfileViewModel alloc] initWithServices:self.services params:nil];
- }
- @end
|