How to modify NSTextAttachement 's position in uilabel?

263 views Asked by At

As the picture says, I got two image NSTextAttachments in a label ,and the label has a red background color, If i want to move the image a little down in the label ,how to achieve this?

enter image description here

(The image above had the bottom truncated because it was white space).

1

There are 1 answers

1
johny kumar On

You can use this

- (void)setVerticalAlignment:(VerticalAlignment)verticalAlignment;