Can I use NSBaselineOffsetAttributeName with TTTAttributedLabel?

2.4k Views Asked by At

I've tried to use NSBaselineOffsetAttributeName with TTTAttributedLabel but it seems to have no effect. For example, this does not seem to do anything:

[label setText:text afterInheritingLabelAttributesAndConfiguringWithBlock:^ NSMutableAttributedString *(NSMutableAttributedString *mutableAttributedString) {
     [mutableAttributedString addAttribute:NSBaselineOffsetAttributeName value:@5.0 range:NSMakeRange(0, [text length] - 5)];

     return mutableAttributedString;
}];

If this attribute is not supported, is there another way to adjust the label baseline?

0

There are 0 best solutions below