iOS navigationItem title with custom font loses vertical centering
-
19-06-2021 - |
题
Is there any text attribute like line-height or any other feature that would help with vertical centering of a UINavigationItem
title? After setting custom font it is higher than standard one.
解决方案
Of course, there is a method on UINavigationBar named
- (void)setTitleVerticalPositionAdjustment:(CGFloat)adjustment forBarMetrics:(UIBarMetrics)barMetrics
不隶属于 StackOverflow