Skip to content

Instantly share code, notes, and snippets.

@muukii
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muukii/1bc878babe2be43178f9 to your computer and use it in GitHub Desktop.
Save muukii/1bc878babe2be43178f9 to your computer and use it in GitHub Desktop.
先頭にアイコンを付けた文字列で、アイコンの縦位置がずれる場合の調整
[mutableAttributedString addAttribute:NSBaselineOffsetAttributeName
value:@(-1.)
range:NSMakeRange(0, 1)];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment