Displaying '%' in the UI
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