objective c - NSNumberFormatterCurrencyStyle where decimals are only shown when period is used on the keypad -


I am a new obj c programmer, and I do not know what is the status of switching to the following scenario:

I have UITe I am using xtField as the input field. Part of my code:

  NSNumberFormatter * numberFormatter = [[NSNumberFormatter alloc] init]; [NumberFormatter Settlement Style: NSNumberFormatterCurrencyStyle]; Cell.input = [[UITextField alloc] initWithFrame: CGRectMake (0, 6, cell.frame.yize.width, 80)]; Cell.input.currencyNumberFormatter = numberFormatter;   

Do I have to use the UITextField method Will be in the condition:

  • (zero) textFieldDidBeginEditing: (UITextField *) textField {}

    Any indication which you can provide is really appreciated Will go. Thanks!

    Set the currency code Set minimum and maximum degrees

      [ NumberFormatter setCurrencyCode: @ "USD"]; [Number format maximum fracturedegit: 2]; [Number formatting set minimum fracturing data: 0];    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -