ios - How to display price format ( small cents) -
This question is already an answer here
- 1 answer
I display a value Trying to do with small cents: St should be smaller than other images, such as the veneer of the image. I searched in NSNumberFormatter but did not find the answer. do you have an idea?
thanks
Text after "
Once you have your string formatted, you can create a
NSMutableAttributedString . Ours '.' Find the string for it and then get the
NSRange of the substrings. Once you have this series, do something like:
[attributedString setAttributes: @ {NSFontAttributeName: [UIFont fontWithName: @ "Helvetica" size: 10], NSBaselineOffsetAttributeName: @ 10 } Range: centsRange];
You want to make sure that you choose smaller font sizes than the rest of your text.
Comments
Post a Comment