I have a simple question. In my application (iPhone) I am displaying the
current time.

NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];

[formatter setTimeStyle:NSDateFormatterShortStyle];

NSDate *date = [NSDate date];

[formatter setDateFormat:@"h:mm a"];

[clockLabel setText:[formatter stringFromDate:date]];


However I would like the AM or PM to display in a smaller font than the rest
of the time string in my UILabel. How do I go about introducing that without
resorting to using a separate UILabel?


9:00 AM


Thanks,

Eric
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to