views:

311

answers:

2

A quick question, for a quick answer (since I'm not finding any):

Is there a way to change the font of the section's title (given by titleForSection) in iPhone?

Thanks a lot!

+2  A: 

You'll have to use the viewForHeaderInSection: method and provide your own view. Luckily this can be a UILabel with a specified font, so you can do it quite easily.

Jasarien
A: 
camilo
This is great, however, UILabel is a direct subclass of UIView, so you don't really need to create a 'header' view and add the label as a subview. You can simply return the label itself as the header view.
Jasarien