I have a UITableView with a view in the header. This view has the pinstripe background and contains a UILabel. I want the UILabel text to look like the text of a section header. How can I achieve this?
A:
Try a variation of the following:
label.shadowColor = [UIColor blackColor];
label.shadowOffset = CGSizeMake(0.0, 1.0);
Alex Reynolds
2010-05-25 03:33:16
or [UIColor darkGrayColor];
drawnonward
2010-05-25 08:11:50
This is close, but still doesn't look like the title of a section header
Sheehan Alam
2010-05-25 15:31:50
You'll just need to tweak and test it. This is the general process for applying a shadow to a label.
Alex Reynolds
2010-05-25 17:09:59
A:
This worked for me:
label.font = [UIFont boldSystemFontOfSize:label.font.pointSize];
label.textColor = [UIColor darkGrayColor];
label.shadowColor = [UIColor whiteColor];
label.shadowOffset = CGSizeMake(0.0, 1.0);
owise1
2010-09-13 18:36:37