I want to slightly change the y-position of the character in NSAttributedString . I know that subscript (or superscript) can be used with an attribute dictionary:
@{(id)kCTSuperscriptAttributeName: @(-1)}
Unfortunately, the shift caused by this is too big in my case. I am looking for the opportunity to adjust the basic level in increments of 1 point.
The assigned string will be displayed in UIButton with -setAttributedTitle:forState:
Ortwin gentz
source share