IOS:证明UILabel中的文本在UI中不起作用

Pha*_*inh 8 xcode uilabel ios text-justify

我想对齐我的文本,UILabel但似乎不起作用.但是,另一个对齐是左,右,中心工作.
我正在使用XCode 7.2.我已经在模拟器和真实设备上进行了测试,但它产生了同样的问题

对齐Justify 在此输入图像描述

我的文字:

Don't worry, your data will not be sold.Don't worry,your data wills not be sold. Connecting your accounts will benefit your E score and your profile viewing experience. Don't worry, your data will not be sold.Don't worry, your data wills not be sold. Connecting your accounts will benefit your ECT score and your profile viewing experience.
Run Code Online (Sandbox Code Playgroud)

使用font:Helvetica Neue 13.0和trailing/leading:10

同样的问题,如果我在这里使用对齐来证明文本 在此输入图像描述

我不知道为什么这发生在我身上.请给我一些解决方法.任何帮助将非常感谢

wj2*_*061 5

这似乎是 UILabel 的一个错误,但您可以通过对故事板进行微小更改来修复它。
单击NSTextAlignments 同一行中的more按钮,添加一点 Head Indent ,例如0.1
在此处输入图片说明

您的 UILabel 将正常工作。
在此处输入图片说明