How do I vertically correct the navigationBar's titleView text position when using a custom font?
问题 We're using custom fonts for the titleView in the navigation bar. Somehow Apple always draws this font too high. How do I correct for this strange offset you get when you are using custom fonts in a navbar? 回答1: I used setTitleVerticalPositionAdjustment:forBarMetrics: . Compatibility: available starting from iOS 5. 回答2: Your can set a new view as titleView , then add a new label to it: UIView * customTitleView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 200.0f, 40.0f)]; UILabel *