123456789101112131415161718192021 |
- //
- // RQCommonSwitchItemViewModel.m
- // RQCommon
- //
- // Created by 张嵘 on 2018/11/27.
- // Copyright © 2018 张嵘. All rights reserved.
- //
- #import "RQCommonSwitchItemViewModel.h"
- @implementation RQCommonSwitchItemViewModel
- - (void)setOff:(BOOL)off {
- _off = off;
- [RQPreferenceSettingHelper setBool:off forKey:self.key];
- }
- - (void)setKey:(NSString *)key {
- [super setKey:key];
- _off = [RQPreferenceSettingHelper boolForKey:key];
- }
- @end
|