阅读背景:

是否有可能在接口构建器中选择性地覆盖布局限制?

来源:互联网 

I'm attempting to adjust the size of a UIImageView dependent on whether the device is an iPhone 5 (tall screen) or an earlier iPhone version (shorter screen). Below is my code. However when I run the app these instructions are ignored. I suspect the problem is caused by auto layout constraints. If I turn those constraints off the image is resized but that messes up the rest of my layout. Is there anyway to selectively override auto layout rather than turning it off?I'm attempting to adjust the size of a UIImageV




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: