ios - xcode format numbers with spaces -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 6 जवाब

मैं कैसे कीमतों में परिवर्तित कर सकता हूँ इस प्रकार से

1000000

1 000 000 < / P>

धन्यवाद।

यहां यह है:

<पूर्व> NSNumberFormatter * numberFormatter = [[NSNumberFormatter alloc] init]; [NumberFormatter सेटनम्बर स्टाइल: NSNumberFormatterCurrencyStyle]; NSString * numberAsString = [numberFormatter stringFromNumber: [एनएसएनम्बर नंबरवास्त डबल: [मुद्रा डबल वैल्यू]]]; Self.label.text = numberAsString;

और अगर आप दिखाना चाहते हैं


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -