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.
我是ios新手。我很困惑为什么我的模拟器显示与我的 xib 不同?
您正在使用 Auto Layout,模拟 iPhone 5 显示屏(4" Retina),然后在 3.5" 模拟器上运行它。最底部的 UI 元素具有固定其与窗口底部距离的约束,因此当窗口缩小时,它会相对于其他元素“向上”移动。尝试将模拟视图切换到 Storyboard 中的 3.5" 屏幕,Xcode 中 Storyboard 的右下角有一个按钮。