I tried using NSBaselineOffsetAttributeNamewith TTTAttributedLabel, but it seems to have no effect. For example, this does nothing:
[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 configure the base label?
source
share