How to get the same UITableViewCell layout as in the Address Book app?

Posted by Romain on Stack Overflow See other posts from Stack Overflow or by Romain
Published on 2010-03-07T22:37:02Z Indexed on 2010/03/07 23:11 UTC
Read the original article Hit count: 477

Hi,

I currently have a custom UITableViewCell which contains a few labels, and an image. The "main" label is used to display people's names. Currently, I'm styling it in bold text. What I'd like to do (to gain some space and readability), is to mimic the Address Book app cell style, that is: first name in light text, and family name in bold text. Is there a way to do this using the same UILabel? Or, should I use 2 different UILabels? How should I layout them, without knowing their sizes?

Thanks in advance for your assistance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableviewcell