开发者

UIToolbar multiline text

开发者 https://www.devze.com 2023-02-23 01:30 出处:网络
Hey guys, I\'m tr开发者_开发百科ying to add text to my UIToolbar, but there\'s a catch: I want to change the font and have 2 lines of text (top line smaller, bottom line bigger). Any ideas how to do t

Hey guys, I'm tr开发者_开发百科ying to add text to my UIToolbar, but there's a catch: I want to change the font and have 2 lines of text (top line smaller, bottom line bigger). Any ideas how to do that?

Thanks in advance!


You need to create a bar button item that contains a custom view (which in your case could be a multiline UILabel). See -[UIBarButtonItem initWithCustomView:].

0

精彩评论

暂无评论...
验证码 换一张
取 消