简体   繁体   English

UILabel甚至在iPhone 5c上具有内容压缩所需的优先级时也会截断字符串。 但可以在模拟器和iPad(设备)上正常工作

[英]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(设备)-

iPhone5c装置

iPhone 5s(Simulator) - iPhone 5s(仿真器)-

iPhone5s模拟器

iPad(Device) - iPad(设备)-

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.

相关问题 一个奇怪的行为是QLPreviewer或iPad设备,一个docx文件没有在设备中打开但在模拟器(iPad和iPhone)中工作正常 - A weird behaviour is with QLPreviewer or iPad Device that one docx file is not getting opened in device but works fine in simulator (iPad and iPhone) 在iPhone模拟器中工作正常,但在iPhone设备中锁定 - Works fine in iphone simulator but lockup in an iphone device 该应用程序在iPhone上运行良好; iPad模拟器仅提供黑屏 - app works fine on iPhone; iPad simulator gives only black screen iPad Opengl ES程序可以在模拟器上正常运行,但不能在设备上运行 - iPad Opengl ES program works fine on simulator but not device UILabel.attributedText在iPhone Simulator上不显示(但在iPad Simulator上可用) - UILabel.attributedText doesn't show on iPhone Simulator (but works on iPad Simulator) 内容拦截器在模拟器中工作,但在iPhone设备中不起作用 - content blocker works in simulator but does not work in iPhone device 应用程序可在iphone ipad模拟器上运行,但不能在ipad设备上运行:黑屏,然后熄灭 - App works on iphone ipad simulator but not ipad device: Black screen and then goes out JayData / Phonegap可在iPad Simulator中使用,但不适用于iPad设备 - JayData / Phonegap works in iPad Simulator but not iPad device UILabel在运行时为nil,可在模拟器上运行,但在设备上崩溃 - UILabel is nil on runtime, works on simulator, but crashes on device UILabel调整为IOS Simulator上的内容大小,但不调整为iPhone - UILabel adjusts to content size on IOS Simulator but not iPhone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM