How can I make the text of a UIBarButtonItem wrap

2019-06-04 01:56发布

Some of the titles of view controllers in my UINavigationController are quite long, which makes the back button in the navigation bar of the next view controller in the hierarchy miss out some of the text, with a "..." instead.

How could I make the text of the back button wrap onto two lines, as with "Now Playing" in the navigation bar of iPod.app?

Thanks!

1条回答
仙女界的扛把子
2楼-- · 2019-06-04 02:28

You could use the UIBarButtonItem method initWithCustomView: then set the rightBarButtonItem property in UINavigatiobItem.

查看更多
登录 后发表回答