How to right-justify UILabel text?

前端 未结 6 1144
悲哀的现实
悲哀的现实 2021-02-14 12:38

How to right-justify UILabel text?

thanks

6条回答
  •  一整个雨季
    2021-02-14 12:59

    The above methods have been deprecated. The new method call is:

    label.textAlignment = NSTextAlignmentRight;
    

提交回复
热议问题