简体   繁体   中英

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-

约束

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. But the same constraints work fine on the simulator and on an iPad. Is there something wrong constraint-wise or a problem from the device?

Screenshots of the same:-

iPhone 5c(Device) -

iPhone5c装置

iPhone 5s(Simulator) -

iPhone5s模拟器

iPad(Device) -

ipad公司设备

I upgraded my device to iOS 8.4 and now the issue seems to have resolved. There must have been some issues in 8.0.2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM