admin管理员组

文章数量:1123056

In Xcode 16 (16.2 at the moment) I'm unable to set the title text attributes Title Font for a navigation controller's navigation bar. If I pop down the little popover for the title text attributes Title Font in the attributes inspector for the nav bar, no change that I make there actually sticks. And even though Custom font is chosen by default, nothing that I do allows me to choose a font. And that's what I really want to do: I want to set the font as Chalboard SE Bold size 20.

This is the app's launch screen storyboard, so I can't use code as an alternative.

Is there some way of setting the font and size that isn't so obvious, or is this an Xcode bug (one that others are seeing as well)?

In Xcode 16 (16.2 at the moment) I'm unable to set the title text attributes Title Font for a navigation controller's navigation bar. If I pop down the little popover for the title text attributes Title Font in the attributes inspector for the nav bar, no change that I make there actually sticks. And even though Custom font is chosen by default, nothing that I do allows me to choose a font. And that's what I really want to do: I want to set the font as Chalboard SE Bold size 20.

This is the app's launch screen storyboard, so I can't use code as an alternative.

Is there some way of setting the font and size that isn't so obvious, or is this an Xcode bug (one that others are seeing as well)?

Share Improve this question asked 2 hours ago mattmatt 534k93 gold badges929 silver badges1.2k bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I was able to get this to work, but it was incredibly difficult and unintuitive.

  1. In the popover, set the Font to a style, such as Body, even though that isn't what you want, and click Done.

  2. Now bring up the popover again. Change the Font to Custom, and now you will see the Family, Style, and Size fields — and they will actually work.

本文标签: iosStoryboard navigation bar title text attributesTitle Font not workingStack Overflow