• 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
Re: Mixed font sizes in a UILabel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixed font sizes in a UILabel?


  • Subject: Re: Mixed font sizes in a UILabel?
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Thu, 15 Oct 2009 12:20:00 -0400

Thanks Luke. This might be a nice feature request to be able to do this
easily (and let's say truncation and resizing would not work if implemented
(I realize the pitfalls)).
Eric

On Thu, Oct 15, 2009 at 9:46 AM, Luke the Hiesterman <email@hidden>wrote:

> If you don't want to use labels, you can draw the text yourself using
> UIStringDrawing methods. Otherwise, you need two labels for this.
>
> Luke
>
>
> On Oct 15, 2009, at 6:45 AM, Eric E. Dolecki wrote:
>
>  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 (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
>>
>
>


--
http://ericd.net
Interactive design and development
_______________________________________________

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: Mixed font sizes in a UILabel?
      • From: Jon Drukman <email@hidden>
    • Re: Mixed font sizes in a UILabel?
      • From: Alex Kac <email@hidden>
References: 
 >Mixed font sizes in a UILabel? (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Mixed font sizes in a UILabel? (From: Luke the Hiesterman <email@hidden>)

  • Prev by Date: Re: Can I make custom pasteboard type for an object reference?
  • Next by Date: Re: Mixed font sizes in a UILabel?
  • Previous by thread: Re: Mixed font sizes in a UILabel?
  • Next by thread: Re: Mixed font sizes in a UILabel?
  • Index(es):
    • Date
    • Thread