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?

    value

    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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -