I\'d like to append an NSTextAttachment image to my attributed string and have it centered vertically.
NSTextAttachment
I\'ve used the following code to create my string
What about:
CGFloat offsetY = -10.0; NSTextAttachment *attachment = [NSTextAttachment new]; attachment.image = image; attachment.bounds = CGRectMake(0.0, offsetY, attachment.image.size.width, attachment.image.size.height);
No subclassing needed