How to line break long large title in iOS 13?
Asked Answered
W

1

14

As title, is there a way to split long large titles in UINavigationBar?

I tried all those methods, working for iOS 11 but none of them seem work to me on iOS 13

How to set multi line Large title in navigation bar? ( New feature of iOS 11)

Wilding answered 23/9, 2019 at 12:33 Comment(5)
same issue for me. Did you find a solution?Ryanryann
Nope. So far I created a custom Label view that imitates the default ios behaviourWilding
Would you be willing to share your UILabel code?Morality
Same for me. #62588868Groark
This code worked for me just by setting navigation item's value: https://mcmap.net/q/709930/-multiple-lines-for-large-titles-in-navigation-bars-in-ios-11Septuor
B
0

You can do it by adding a custom view (UILabel) to your title as answered here.

Backfield answered 27/5, 2020 at 21:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.