Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Grouped table section name font style and color

kryekrye Posts: 362Registered Users
edited March 2009 in iPhone SDK Development
I created a grouped table with multiple sections. Each section has its own heading. I made the background of the table clear so that the View background image would display through, but the default font style and color of the section titles doesn't look good. You can hardly read where it says "Name".

3368674324_e38442daf3.jpg?v=0

Does anyone know how to change the font style/color of a grouped table Section Name? I searched this forum and the ADC, but came up empty.

Thanks
Post edited by krye on
<a href="http://ineedcoffeetocode.com" target="_blank">iNeedCoffeeToCode.com</a> <a href="http://rescuemyclassicmac.com" target="_blank">RescueMyClassicMac.com</a> <a href="http://ryemac3.net" target="_blank">RyeMAC3.net</a>
· ·

Replies

  • kryekrye Posts: 362Registered Users
    edited March 2009
    I had a look at UIColor again and that does not seem to help. I see where you can change the color of the text within the cell, but not for the heading.

    Anyone?
    <a href="http://ineedcoffeetocode.com" target="_blank">iNeedCoffeeToCode.com</a> <a href="http://rescuemyclassicmac.com" target="_blank">RescueMyClassicMac.com</a> <a href="http://ryemac3.net" target="_blank">RyeMAC3.net</a>
    · ·
  • kryekrye Posts: 362Registered Users
    edited March 2009
    See...

    directv33-30.jpg

    Their grouped table view section headers are white. How did they do that?
    <a href="http://ineedcoffeetocode.com" target="_blank">iNeedCoffeeToCode.com</a> <a href="http://rescuemyclassicmac.com" target="_blank">RescueMyClassicMac.com</a> <a href="http://ryemac3.net" target="_blank">RyeMAC3.net</a>
    · ·
  • PhoneyDeveloperPhoneyDeveloper Posts: 1,431Registered Users
    edited March 2009
    Implement viewForHeaderInSection and return a label.
    · ·
  • kryekrye Posts: 362Registered Users
    edited March 2009
    Huh? Care to elaborate?
    Thanks.
    <a href="http://ineedcoffeetocode.com" target="_blank">iNeedCoffeeToCode.com</a> <a href="http://rescuemyclassicmac.com" target="_blank">RescueMyClassicMac.com</a> <a href="http://ryemac3.net" target="_blank">RyeMAC3.net</a>
    · ·
  • PhoneyDeveloperPhoneyDeveloper Posts: 1,431Registered Users
    edited March 2009
    viewForHeaderInSection is a callback in the UITableViewDelegate protocol. You implement it. It returns a UILabel that will be displayed in the header for that section. You configure the UILabel to appear however you like.

    You can search for viewForHeaderInSection in this forum.
    · ·
  • kryekrye Posts: 362Registered Users
    edited March 2009
    viewForHeaderInSection is a callback in the UITableViewDelegate protocol. You implement it. It returns a UILabel that will be displayed in the header for that section. You configure the UILabel to appear however you like.

    You can search for viewForHeaderInSection in this forum.

    Cool, thanks
    <a href="http://ineedcoffeetocode.com" target="_blank">iNeedCoffeeToCode.com</a> <a href="http://rescuemyclassicmac.com" target="_blank">RescueMyClassicMac.com</a> <a href="http://ryemac3.net" target="_blank">RyeMAC3.net</a>
    · ·
Sign In or Register to comment.