jjzjj

bigLabel

全部标签

iphone - 如何在 UINavigationController 中添加多行标题栏

我尝试在UINavigationController中添加两行标题栏我想根据字符串长度自动调整字体大小。我的字符串最大大小为60。我已尝试通过以下代码实现UILabel*bigLabel=[[UILabelalloc]init];bigLabel.text=@"12345678901234567890123456789012345678901234567890123456";bigLabel.backgroundColor=[UIColorclearColor];bigLabel.textColor=[UIColorwhiteColor];bigLabel.font=[UIFontbo