UILabel see rightmost content

前端 未结 1 1059
南笙
南笙 2021-01-26 07:19

Normally, when I put a string in my label, the contents that go after the label\'s dimension will be displayed as \"...\". I need to see this the other way. ie. When the content

1条回答
  •  孤城傲影
    2021-01-26 07:57

    Set the lineBreakMode of the UILabel to NSLineBreakByTruncatingHead.

        [myLabel setLineBreakMode: NSLineBreakByTruncatingHead];
    

    0 讨论(0)
提交回复
热议问题