Mixed font sizes in a UILabel?

2009-10-15 Thread Eric E. Dolecki
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

Re: Mixed font sizes in a UILabel?

2009-10-15 Thread Luke the Hiesterman
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.

Re: Mixed font sizes in a UILabel?

2009-10-15 Thread Eric E. Dolecki
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 luket...@apple.comwrote: If you don't want to use labels, you

Re: Mixed font sizes in a UILabel?

2009-10-15 Thread Alex Kac
Truncation and resizing would be super simple to implement since the UIStringDrawing handles all that for you. Simply make UIView that autoresizes and have the content style to redraw. SO a couple lines there. Then a drawRect with the UIStringDrawing methods to the size of the view and

Re: Mixed font sizes in a UILabel?

2009-10-15 Thread Jon Drukman
On Thu, Oct 15, 2009 at 9:20 AM, Eric E. Dolecki edole...@gmail.com wrote: 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)). You might want to check out Joe Hewitt (of