title: Detect regional currency format (iPhone)
body: <p>Okay so I have an app with a numberfield (buttons with values 0-9) that updates a label which is formatted to the local currency.
  The label automatically places the decimal for the user, so the format is 0.00.
  Now this is a problem because iphone formats most other currencies, such as the Euro, as 0,00.</p>
  
  <p>Is there a way to detect the regional currency format (Settings > International > Region Format)?</p>
  
  <p>I would then make an if statement accordingly.</p>
  
  <p>My current number pad code:</p>
  
  <pre><code>NSString *digit = sender.currentTitle;
  numberField.text = [numberField.text stringByAppendingString:digit];
  
  NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
  [numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle];
  [numberFormatter setGroupingSeparator:@""];
  [numberFormatter setMaximumIntegerDigits:4];
  [numberFormatter setMaximumFractionDigits:2];
  [numberFormatter setMaximumFractionDigits:2];
  
  numberField.text = [numberField.text stringByReplacingOccurrencesOfString:@"."    withString:@""];
  NSDecimalNumber *currency = [[NSDecimalNumber decimalNumberWithString:numberField.text]   decimalNumberByDividingBy: [NSDecimalNumber decimalNumberWithString:@"100"]];
  numberField.text = [numberFormatter stringFromNumber:currency];
  </code></pre>
  
  <p>You can see on line 11 where it inserts the decimal. When i change it to a comma, the 0,00 format works properly.</p>
  
  <p>And the conversion:</p>
  
  <pre><code>NSNumberFormatter *f = [[NSNumberFormatter alloc] init];
  [f setNumberStyle:NSNumberFormatterCurrencyStyle];
  NSString *string = [f stringFromNumber:[NSNumber numberWithFloat:[numberField.text floatValue]]];
  
  numberField.text=string;
  </code></pre>