[英]UILabel truncating string even with required priority for content compression on iPhone 5c. But works fine in the simulator and iPad(device)
This seems to be a weird issue. 这似乎是一个奇怪的问题。 I have a UILabel which can contain multiple line text loaded from a back-end which has following constraints-
我有一个UILabel,可以包含从后端加载的多行文本,该后端具有以下约束-
But only on the iPhone 5c device(on iOS 8.0.2), the label is retaining the initial height given to the constraint and is truncating the rest of the content. 但是仅在iPhone 5c设备(在iOS 8.0.2上)上,标签会保留赋予约束的初始高度,并会截断其余内容。 But the same constraints work fine on the simulator and on an iPad.
但是,相同的约束条件在模拟器和iPad上也能正常工作。 Is there something wrong constraint-wise or a problem from the device?
设备是否存在约束方面的问题或设备有问题?
Screenshots of the same:- 的截图:-
iPhone 5c(Device) - iPhone 5c(设备)-
iPhone 5s(Simulator) - iPhone 5s(仿真器)-
iPad(Device) - iPad(设备)-
I upgraded my device to iOS 8.4 and now the issue seems to have resolved. 我已将设备升级到iOS 8.4,现在问题似乎已经解决。 There must have been some issues in 8.0.2.
8.0.2中肯定存在一些问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.