开发者

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);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜