Last active
May 14, 2020 01:30
-
-
Save r3econ/9738515 to your computer and use it in GitHub Desktop.
UIButton category for centering title label and image vertically. The text label is placed below the image.
If you change the font of the titleLabel this won't work. The image does not center properly for some reason
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as indicated here (where I assume this came from) the calculation of the titleSize doesn't work properly for custom fonts / sizes.
This works and is updated for ios7+