5

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?

rickharrison
  • 4,867
  • 4
  • 35
  • 40

0 Answers0