简体   繁体   English

Xcode 5 / iOS SDK 7.0:UIImageView无法正确显示

[英]Xcode 5/iOS SDK 7.0: UIImageView not displayed correctly

I moved my project to Xcode 5 and then it changed some of my views locations on the screen. 我将项目移到Xcode 5,然后它改变了我在屏幕上的某些视图位置。

In particular a couple of UIImageViews were given way out of bounds coordinates (something like x=-3000). 特别是,给出了几个UIImageViews超出范围坐标(类似于x = -3000)。 I corrected their coordinates and since then these views are only displayed on iPhone 5. On iPhone 3-4 they are not displayed at all. 我更正了它们的坐标,此后,这些视图仅显示在iPhone 5上。在iPhone 3-4上,它们根本不显示。

Before moving to Xcode 5 it worked perfectly on all devices. 迁移到Xcode 5之前,它在所有设备上均能完美运行。
Has anyone encountered this issue and knows how to fix it? 有没有人遇到此问题,并且知道如何解决?

Are you compiling for iOS7? 您要针对iOS7进行编译吗? Maybe you did some conversion to autolayout which did some wrong adjustments. 也许您做了一些到自动布局的转换,但做了一些错误的调整。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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