• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Displaying '%' in the UI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying '%' in the UI


  • Subject: Displaying '%' in the UI
  • From: The Rhythmic <email@hidden>
  • Date: Wed, 18 Apr 2012 00:33:21 +0530

A trivial question, but not able to get to it. How am I to display '%'
(percentage symbol) in the UI? Here is the code snippet, where am trying to
set '%' to the end of a number (something like '100%'). But, '100' is
getting displayed in the button's text, but how do I make it display the
'%' symbol? Please help.

    [button1 setTitle:[NSString stringWithFormat:@"%.0f", ratio1]

                 forState:UIControlStateNormal];


Thanks

Priya
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Displaying '%' in the UI
      • From: Velocityboy <email@hidden>
  • Prev by Date: Re: tips on managing group rows
  • Next by Date: Re: Displaying '%' in the UI
  • Previous by thread: Completed graphics for Delete Item callout
  • Next by thread: Re: Displaying '%' in the UI
  • Index(es):
    • Date
    • Thread