How do you set a font to be both bold and italic. There is a boldSystemFontOfSize and italicSystemFoneOfSize, but I can’t see the way to set a font to be both italic and bold.
As a second question, is there a way to set an underline on a font, or do you simply draw a line under text.
You have to actually ask for the bold, italic version of a font. For example:
To get a list of everything available on the iPhone, put this little snippet in your
applicationDidFinishLaunching:delegate method and look at the log output:Note: Some font names say “oblique” – this is the same as italic.
I can’t see a built-in way of doing underlines – you may have to draw the line yourself.