jverkoey / nimbus

The iOS framework that grows only as fast as its documentation

Home Page:nimbuskit.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when NIAttributedLabel set "lineHeight" property, then "verticalTextAlignment" not work

winterSleep opened this issue · comments

when NIAttributedLabel set "lineHeight" property with:

[attributedString setTextAlignment:kCTTextAlignmentLeft lineBreakMode:kCTLineBreakByCharWrapping lineHeight:17];

and then I want the text align to vertical middle with:

(NIAttributedLabel *)label.verticalTextAlignment = NIVerticalTextAlignmentMiddle;

the text still align to bottom ranther than central