Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找以下内容:
我在 .nib 文件中有一个对象(框)。无论窗口发生什么,调整大小,最大化,......我希望盒子在同一个地方,并且不惜一切代价具有相同的宽度和高度。
这怎么可能?
谢谢!
我认为从 xCode 4.3 开始,对象使用自动布局。要禁用此功能,请转到检查器中的第一个选项卡。然后取消选中“使用自动布局”。然后只需转到布局选项卡并在“自动化”框中检查从左到右和从上到下的箭头!以下是一些图片:
1.
2.