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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -