- swift
navigationBarMy.titleTextAttributes = [NSAttributedString.Key.font:UIFont(name: "PingFang SC", size: 18)]
- oc
NSMutableAttributedString *string = [
[NSMutableAttributedString alloc] initWithString:@" 速度等級"
attributes: @{
NSFontAttributeName: [UIFont fontWithName:@"PingFang SC" size: 18],
NSForegroundColorAttributeName: [UIColor colorWithRed:38/255.0 green:40/255.0 blue:41/255.0 alpha:1.00],
NSParagraphStyleAttributeName: [NSMutableParagraphStyle lineSpace: 5pt]
}];
label.attributedText = string;
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/398024.html
標籤:AI
下一篇:adb網路除錯
