// // RAEditBaseModel.m // Apex And Drivers // // Created by Jack on 2018/6/4. // Copyright © 2018年 USAI. All rights reserved. // #import "RAEditBaseModel.h" @implementation RAEditBaseModel - (void)setValue:(id)value forUndefinedKey:(NSString *)key { } - (void)setValuesForKeysWithDictionary:(NSDictionary *)keyedValues { [super setValuesForKeysWithDictionary:keyedValues]; if (self.autofill) { [self updateDefaultValue]; } } - (void)setTitle:(NSString *)title { _title = title; if (self.delegate && [self.delegate respondsToSelector:@selector(refresh)]) { [self.delegate refresh]; } } - (void)setDelegate:(id)delegate { if (_delegate != delegate && _delegate && [_delegate respondsToSelector:@selector(unbind)]) { [_delegate unbind]; } _delegate = delegate; } - (void)updateDefaultValue { } @end