123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // FormFieldsModel.m
- // smartRhino
- //
- // Created by tederen on 2019/11/19.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "FormFieldsModel.h"
- @implementation FormFieldsModel
- - (CGFloat)getCellHeight {
- UILabel *textLabel = [UILabel new];
- textLabel.numberOfLines = 0;
- textLabel.font = [UIFont systemFontOfSize:15.f];
- textLabel.text = self.Value;
- if (!ISEmptyString(self.Value)){
- [ZYCTool setLabel:textLabel withSpace:10.f withFont:textLabel.font setLineSpace:0 setTextSpace:2.f];
- }
- CGSize textSize = [textLabel sizeThatFits:CGSizeMake(kGXScreenWidth-30, MAXFLOAT)];
- CGFloat height = 40+textSize.height+10;
-
- return height;
- }
- - (NSMutableArray<SelectImageModel *> *)paraImage{
- if (!_paraImage) {
- _paraImage = [NSMutableArray array];
- }
- return _paraImage;
- }
- - (NSString *)paramString {
- if (_paramString == nil) {
- return self.Value;
- }
- return _paramString;
- }
- @end
|