ios - Xcode - 模拟器显示不同于 Storyboard 的 View

标签 ios xcode autolayout ios-simulator

Storyboard 上的自动布局工作正常,当我更改 View (iPad、iPhone)时,不同的屏幕可以正确布局。

iPad - Storyboard Autolayout

iPhone Storyboard Autolayout

但是,当使用 Simulator 时,结果与 Storyboard 上的结果不同(注意绿色箭头)。

Simulator layout is NOT the same as the Storyboard Auto Layout

最佳答案

右下角带有文本1X的按钮表示您的应用未正确缩放并且仅限iPhone

项目设置/目标/[您的目标]/常规/部署信息/设备下,选中通用而不是 iPhone。

Project settings/Targets Deployment info settings

关于ios - Xcode - 模拟器显示不同于 Storyboard 的 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47657504/

相关文章:

c++ - 如何在 xcode 中使用 gmock?

ios - 播放视频 iPad Ios6

ios - 如何设置 MPNowPlayingInfoCenter 的图稿图像

ios - 无法将自动布局约束添加到UITableViewCell中的元素

ios 程序化 UI 与自动布局最佳实践

ios - 在 TabBarController 中弹出到 root SplitViewController - iOS

javascript - 移动 Safari,scrollIntoView 不起作用

ios - 使用编程自动布局调整 UITableView 的大小

ios - 扫描提供特定服务的外围设备,但在发现的外围设备上找不到服务

ios - 非公开 API 使用 : Apps are not permitted to access the UDID and must not use the uniqueIdentifier method of UIDevice