FormKit.m icon indicating copy to clipboard operation
FormKit.m copied to clipboard

Issue with float conversion when using french UIKeyboardTypeDecimalPad

Open ghost opened this issue 12 years ago • 0 comments

I I've noticed an issue when trying to enter a float value with a french UIKeyboardTypeDecimalPad. In this case the string value is x,xxx and not x.xxx so [value floatValue] is just returning the decimal part. What I suggest is to replace it by

float floatValue = [[value stringByReplacingOccurrencesOfString:@"," withString:@"."] floatValue];

in

  • (id)convertValueToObjectPropertyTypeIfNeeded:(NSString*)value attributeMapping:(FKFormAttributeMapping *)attributeMapping

of FKFormMapper.m

Thanks for the good job Regards Nicolas

ghost avatar Feb 28 '13 07:02 ghost