code review
This commit is contained in:
parent
0169d50c80
commit
fa4b03ac1d
@ -869,7 +869,6 @@
|
|||||||
D29770F221F7C6D600B2F0D0 /* TopLabelsAndBottomButtonsTableViewController.m in Sources */,
|
D29770F221F7C6D600B2F0D0 /* TopLabelsAndBottomButtonsTableViewController.m in Sources */,
|
||||||
DBC4391922442197001AB423 /* DashLine.swift in Sources */,
|
DBC4391922442197001AB423 /* DashLine.swift in Sources */,
|
||||||
D29DF29621E7ADB8003B2FB9 /* StackableViewController.m in Sources */,
|
D29DF29621E7ADB8003B2FB9 /* StackableViewController.m in Sources */,
|
||||||
013DAB042254FCE00092ABB7 /* CheckBoxWithLabel.swift in Sources */,
|
|
||||||
D22D1F1F220343560077CEC0 /* MVMCoreUICheckMarkView.m in Sources */,
|
D22D1F1F220343560077CEC0 /* MVMCoreUICheckMarkView.m in Sources */,
|
||||||
D282AAB4223FDDAE00C46919 /* MFLoadImageView.swift in Sources */,
|
D282AAB4223FDDAE00C46919 /* MFLoadImageView.swift in Sources */,
|
||||||
D29DF11721E6805F003B2FB9 /* UIColor+MFConvenience.m in Sources */,
|
D29DF11721E6805F003B2FB9 /* UIColor+MFConvenience.m in Sources */,
|
||||||
|
|||||||
@ -326,7 +326,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// key used to send text value to server
|
// key used to send text value to server
|
||||||
string = [map string:@"fieldKey"];
|
string = [map string:KeyFieldKey];
|
||||||
if (string.length > 0) {
|
if (string.length > 0) {
|
||||||
self.fieldKey = string;
|
self.fieldKey = string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,7 +59,6 @@
|
|||||||
- (void)setValueForAccessibilityText:(nullable NSString *)text;
|
- (void)setValueForAccessibilityText:(nullable NSString *)text;
|
||||||
- (void)hideDescriptionLabelAndPinCheckboxToRight;
|
- (void)hideDescriptionLabelAndPinCheckboxToRight;
|
||||||
|
|
||||||
// Molecule Design
|
|
||||||
- (void)setWithJSON:(nullable NSDictionary *)json delegate:(nullable NSObject *)delegate additionalData:(nullable NSDictionary *)additionalData;
|
- (void)setWithJSON:(nullable NSDictionary *)json delegate:(nullable NSObject *)delegate additionalData:(nullable NSDictionary *)additionalData;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@ -54,15 +54,15 @@ static const CGFloat CheckBoxHeightWidth = 18.0;
|
|||||||
- (void)setWithJSON:(nullable NSDictionary *)json delegate:(nullable NSObject *)delegate additionalData:(nullable NSDictionary *)additionalData {
|
- (void)setWithJSON:(nullable NSDictionary *)json delegate:(nullable NSObject *)delegate additionalData:(nullable NSDictionary *)additionalData {
|
||||||
[FormValidator setupValidationWithMolecule:self delegate:(id<FormValidationProtocol>)delegate];
|
[FormValidator setupValidationWithMolecule:self delegate:(id<FormValidationProtocol>)delegate];
|
||||||
self.delegate = (id<FormValidationProtocol>)delegate;
|
self.delegate = (id<FormValidationProtocol>)delegate;
|
||||||
self.fieldKey = [json stringForKey:@"fieldKey"];
|
self.fieldKey = [json stringForKey:KeyFieldKey];
|
||||||
self.isRequired = [json boolForKey:@"required"];
|
self.isRequired = [json boolForKey:KeyRequired];
|
||||||
|
|
||||||
NSString *checkedColorHex = [json string:@"checkedColor"];
|
NSString *checkedColorHex = [json string:@"checkedColor"];
|
||||||
NSString *unCheckedColorHex = [json string:@"unCheckedColor"];
|
NSString *unCheckedColorHex = [json string:@"unCheckedColor"];
|
||||||
|
|
||||||
UIColor *checkedColor = checkedColorHex ? [UIColor mfGetColorForHex:checkedColorHex]: [UIColor blackColor];
|
UIColor *checkedColor = checkedColorHex ? [UIColor mfGetColorForHex:checkedColorHex]: [UIColor blackColor];
|
||||||
UIColor *unCheckedColor = unCheckedColorHex ? [UIColor mfGetColorForHex:unCheckedColorHex]: [UIColor clearColor];
|
UIColor *unCheckedColor = unCheckedColorHex ? [UIColor mfGetColorForHex:unCheckedColorHex]: [UIColor clearColor];
|
||||||
NSString *label = [json string:@"label"];
|
NSString *label = [json string:KeyLabel];
|
||||||
|
|
||||||
[self setupWithCheckedColor:checkedColor unCheckColor:unCheckedColor text:label];
|
[self setupWithCheckedColor:checkedColor unCheckColor:unCheckedColor text:label];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,9 @@ extern NSString * const KeyTextColor;
|
|||||||
extern NSString * const KeyIsHidden;
|
extern NSString * const KeyIsHidden;
|
||||||
extern NSString * const KeyIsOpaque;
|
extern NSString * const KeyIsOpaque;
|
||||||
|
|
||||||
|
extern NSString * const KeyFieldKey;
|
||||||
|
extern NSString * const KeyRequired;
|
||||||
|
|
||||||
#pragma mark - Values
|
#pragma mark - Values
|
||||||
|
|
||||||
extern NSString * const StringY;
|
extern NSString * const StringY;
|
||||||
|
|||||||
@ -18,6 +18,8 @@ NSString * const KeyValue = @"value";
|
|||||||
NSString * const KeyLabel = @"label";
|
NSString * const KeyLabel = @"label";
|
||||||
NSString * const KeyDisable = @"disable";
|
NSString * const KeyDisable = @"disable";
|
||||||
NSString * const KeyFieldName = @"fieldName";
|
NSString * const KeyFieldName = @"fieldName";
|
||||||
|
NSString * const KeyFieldKey = @"fieldKey";
|
||||||
|
NSString * const KeyRequired = @"required";
|
||||||
|
|
||||||
NSString * const KeyHideMainMenu = @"hideMainMenu";
|
NSString * const KeyHideMainMenu = @"hideMainMenu";
|
||||||
NSString * const KeyProgressPercent = @"progressPercent";
|
NSString * const KeyProgressPercent = @"progressPercent";
|
||||||
@ -34,6 +36,7 @@ NSString * const KeyTextColor = @"textColor";
|
|||||||
NSString * const KeyIsHidden = @"isHidden";
|
NSString * const KeyIsHidden = @"isHidden";
|
||||||
NSString * const KeyIsOpaque = @"isOpaque";
|
NSString * const KeyIsOpaque = @"isOpaque";
|
||||||
|
|
||||||
|
|
||||||
#pragma mark - Values
|
#pragma mark - Values
|
||||||
|
|
||||||
NSString * const StringY = @"Y";
|
NSString * const StringY = @"Y";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user