开发者

Style UIlabel text like the font in the Settings panel

How do you style a UILabel text like the text below (created using titleForFooterInSection)?

开发者_StackOverflow

Style UIlabel text like the font in the Settings panel


Use the below , you might need to alter the values of color and Size, Try with different-2 combination of both..

UILabel* label = [[UILabel alloc] init];
label.shadowColor = [UIColor grayColor];
label.shadowOffset = CGSizeMake(0,1);

See the UILabel Documentation.

http://developer.apple.com/library/ios/#documentation/uikit/reference/UILabel_Class/Reference/UILabel.html


 label.backgroundColor = [UIColor clearColor];
 label.font = [UIFont systemFontOfSize:14];
 label.shadowColor = [UIColor colorWithWhite:1 alpha:0.5];
 label.shadowOffset = CGSizeMake(1,1);
 label.textColor = [UIColor colorWithRed:(76.0f/255.0f) green:(86.0f/255.0f) blue:(108.0f/255.0f) alpha:1.0f];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜