有人能建议如何有效实现下图所示的内容吗?
总结:
答案 0 :(得分:0)
您可以尝试以下代码。
目标c
{$smarty.block.parent}
迅速
UILabel *lblTitle = [[UILabel alloc] init];
lblTitle.textColor = [UIColor blackColor];
lblTitle.text=@"This is a multiline string for the navBar details";
lblTitle.font=[UIFont systemFontOfSize:16];
lblTitle.frame = CGRectMake(0, 0, 150, 50);
lblTitle.numberOfLines=3;
self.navigationItem.titleView = lblTitle;