iOS Custom Font displaced

后端 未结 2 1473
情深已故
情深已故 2021-02-06 17:05

For a project I bought a OTF font and included it into my project (with adding to plist file etc). It works and I can set the font on my buttons, but the label is d

2条回答
  •  萌比男神i
    2021-02-06 17:38

    you can re-align the UIButton's text place with:

    [_button setTitleEdgeInsets:UIEdgeInsetsMake(0.f, 0.f, 10.f, 0.f)]; // e.g.
    

提交回复
热议问题