开发者

iphone - how do I make my label look like iPhone's inbuilt ones?

I want to create custom labels using UILabel that look like the ones iPhone settings have. Something similar to

iphone - how do I make my label look like iPhone's inbuilt ones?

How do I creat开发者_Python百科e the shadow effect and what font could I use?


You can set the shadowOffset to your UILabel. the first parameter is for horizontal shadow and second parameter for vertical shadow(as you are showing white shadow in your image).

label.shadowColor = [UIColor whiteColor];
label.shadowOffset = CGSizeMake(0.0, 1.0);
[label setFont:[UIFont fontWithName:@"Helvetica" size:12]];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜