Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 iOS 时钟应用程序中,表格视图单元格中的字体有轻微的阴影,给人一种文字被雕刻的效果......
如何重新创建具有雕刻外观的字体?
在此先感谢您的帮助!
只需将阴影颜色设置为白色:
label.textColor = [UIColor blackColor]; label.backgroundColor = [UIColor clearColor]; label.shadowColor = [UIColor whiteColor]; label.shadowOffset = CGSizeMake(0.0, 1.0);