tags:

views:

93

answers:

1

How do I set the font of an UI element (ex. UILabel) to the "System" font in IB?

In code, I know I can do the following:

UIFont * tempFont = [[UIFont systemFontOfSize:24] retain];

But what about doing the same thing in IB? What is the default system font on the IPhone?

A: 

I think you have to find out programmatically (NSLog the result), and set that in interface builder. You won't be sure that the result will be the font in the future however.

By the way, this might be a useful site too: http://daringfireball.net/misc/2007/07/iphone-osx-fonts

drvdijk
i just found that site. Thanks!
CodingWithoutComments