Permalink
Browse files

Fixing decimal element based on feedback from Issue #71

  • Loading branch information...
1 parent f6d6b67 commit 18e962cb2b66a38a5b48c14871391b47ba6bc664 @escoz escoz committed Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 quickdialog/QDecimalTableViewCell.m
  2. +1 −1 sample/SampleDataBuilder.m
@@ -26,7 +26,7 @@ - (QDecimalTableViewCell *)init {
[self createSubviews];
self.selectionStyle = UITableViewCellSelectionStyleNone;
_numberFormatter = [[NSNumberFormatter alloc] init];
- [_numberFormatter setUsesSignificantDigits:YES];
+ [_numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle];
};
return self;
}
@@ -183,7 +183,7 @@ + (QElement *)createSampleControls {
QDecimalElement *decimal = [[QDecimalElement alloc] initWithTitle:@"Decimal Element" value:0.5];
decimal.key = @"decimal1";
- decimal.fractionDigits = 3;
+ decimal.fractionDigits = 2;
[controls addElement:decimal];
QLabelElement *element2 = [[QLabelElement alloc] initWithTitle:@"Label Different Height" Value:@"70"];

0 comments on commit 18e962c

Please sign in to comment.