How to create bold UIFont

后端 未结 4 956
陌清茗
陌清茗 2021-02-05 02:26

I am doing some word wrapping in my tableview as some of the values are so big they go off the edge of the screen.

However, the font and size and boldness dose not match

4条回答
  •  温柔的废话
    2021-02-05 02:48

    You can look into the fontNamesForFamilyName: method.

    Specifically for Helvetica there are these families

    NSLog(@"%@", [UIFont fontNamesForFamilyName:@"Helvetica"]);
    
    "Helvetica-LightOblique",
    Helvetica,
    "Helvetica-Oblique",
    "Helvetica-BoldOblique",
    "Helvetica-Bold",
    "Helvetica-Light"
    

提交回复
热议问题