I have a UILabel that is put as titleView in the navigation bar. I want it to have 2 lines, where the first line can be truncated and the second is center align
UILabel
change your line breakmode to ByTruncatingMiddle instead of ByTruncatingTail. Something like below,
ByTruncatingMiddle
ByTruncatingTail
label.lineBreakMode = .ByTruncatingMiddle
Hope this will help :)