To put a literal % in a format, use %%. On Apr 17, 2012, at 12:03 PM, The Rhythmic wrote:
> 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 (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/velocityboy%40rodentia.net > > This email sent to velocity...@rodentia.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com