开发者

What is the color of labels in address book?

Does any one know the color of labels in the address book? For example when you open a contact you can observe the color of "phone" or "home" labels. So what is that color? Do you have any idea?

Any help greatly appreciated.

Thanks P开发者_如何学Gorathap.


The standard system colors used by Apple are not documented and you have to figure them out yourself (sadly). However, you find a good list here. In your case I guess it's tableCellBlueTextColor. You even can include an extra header with these definitions, but I wouldn't do that for apps submitted to the App Store since it's private framework. You could define it as follows:

#define TABLE_CELL_BLUE_TEXT_COLOR [UIColor colorWithRed:0.22 green:0.33 blue:0.53 alpha:1.0];

And then use it in your code:

label.textColor = TABLE_CELL_BLUE_TEXT_COLOR

Hope it helps. Raphael


Have a look at "System Colors" section in UIColor class reference. There're class method to get some preset color values, +lightTextColor and +darkTextColor are likely the ones you are looking for.


It's very simple, I need to create a UITableViewCell with with style "UITableViewCellStyleValue2". That's it. Very simple solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜