Xcode自动布局调整大小问题 [英] Xcode Auto Layout Resizing Issue
本文介绍了Xcode自动布局调整大小问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在Xcode应用程序的多个按钮和功能上使用自动布局,但是当我尝试自动布局其中一个按钮时,它的大小就会改变
I am trying to use Auto Layout on multiple buttons and features on my Xcode application, however when I try to auto layout one of the buttons the size of it changes
如此处所示: http://imgur.com/a/EuBBe
我在标签上使用了它,有时它的大小不会改变,但在其他标签上却会改变.
I have used this on labels and sometimes it doesn't change its size but on others it does.
如何阻止这种情况发生?
How can I stop this from happening?
谢谢
推荐答案
添加宽度和高度限制以获取所需的按钮大小.
Add width and height constrains to get your desired button size.
这篇关于Xcode自动布局调整大小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文