gpt4 book ai didi

ios - iOS 7 中 Notes 应用程序的字体效果

转载 作者:行者123 更新时间:2023-11-29 03:33:00 24 4
gpt4 key购买 nike

有谁知道如何在 iOS 7 的 Notes 应用程序中复制该字体所具有的微妙嵌入外观?

我尝试了阴影偏移和阴影颜色,但似乎无法让它看起来那么漂亮和微妙。

最佳答案

试试这个

UIFont* font = [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];

UIColor* textColor = [UIColor blueColor];

NSDictionary *attrs = @{ NSForegroundColorAttributeName : textColor,
NSFontAttributeName : font,
NSTextEffectAttributeName : NSTextEffectLetterpressStyle};

NSAttributedString* attrString = [[NSAttributedString alloc]
initWithString:note.title
attributes:attrs];

myTextLabel.attributedText = attrString;

Letter press style ref

关于ios - iOS 7 中 Notes 应用程序的字体效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19529755/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com