1234567891011121314151617181920212223242526272829303132333435 |
- //
- // InPutTextCell.m
- // smartRhino
- //
- // Created by tederen on 2019/11/2.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "InPutTextCell.h"
- @implementation InPutTextCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- self.inputtextFeild.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入" attributes:@{NSForegroundColorAttributeName:[UIColor lightGrayColor],NSFontAttributeName
- :[UIFont systemFontOfSize:17]
- }];
- [self.inputtextFeild addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- }
- - (void)textFieldDidChange:(UITextField *)textField {
- self.formFieldsModel.paramString = textField.text;
- }
- - (void)setFormFieldsModel:(FormFieldsModel *)formFieldsModel {
- _formFieldsModel = formFieldsModel;
- self.inputtextFeild.text = _formFieldsModel.paramString;
- }
- @end
|