12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // CYManager.m
- // shiku_im
- //
- // Created by Ron on 2019/11/18.
- // Copyright © 2019 Reese. All rights reserved.
- //
- #import "CYManager.h"
- #import "CYModel.h"
- @implementation CYManager{
- CYModel *_model;
- }
- static CYManager *_instance;
- + (instancetype)sharedManager {
- return _instance;
- }
- + (void)initialize {
- if (self == [CYManager class]) {
- _instance= [[CYManager alloc] init];
- [_instance initWithData];
- }
- }
- -(void)initWithData{
- _model = [[CYModel alloc] init];
- }
- -(CYModel *)getModel{
- return _model;
- }
- @end
|