How to make UILabel look etched like section header in a UITableView
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 o开发者_如何学Cf a section header. How can I achieve this?
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);
Try a variation of the following:
label.shadowColor = [UIColor blackColor];
label.shadowOffset = CGSizeMake(0.0, 1.0);
精彩评论