ios - iphone 6 和 6 plus 尺寸缩放

标签 ios iphone ios8

令我惊讶的是,我在这个问题上找不到任何明确解决操作方法的问题,而不是在新 iOS 中对 Apple 的期望。

我现在正在从头开始开发一个应用程序,每当我在 xcode IDE 中使用 iphone 6 和 iphone 6 plus 的模拟器时,我都会在屏幕上放错地方,如所附屏幕截图所示。

如何构建一个可以在所有 iPhone 上以相同方式(自动缩放或自动调整大小)运行的应用程序?如果之前已经回答过这个问题,请引导我进入那个主题/线程,因为我找不到任何合适和清晰的解释。 enter image description here enter image description here

enter image description here

最佳答案

一切都与自动布局有关。 这是给你的好文章:http://mobileoop.com/how-to-use-auto-layout-in-xcode-6-for-ios-7-and-8-development

或者苹果官方:Auto Layout Guide

关于ios - iphone 6 和 6 plus 尺寸缩放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26421089/

相关文章:

ios - 为 arm64 iOS 模拟器构建 openssl

ios - 如何在 iOS 7(越狱)中模拟主页按钮按下事件?

ios - UIScrollView 中的 UIWebView,如 Apple Mail.app

iphone - 你如何在 didSelectRowAtIndexPath 中使用 for 循环来最小化我的代码?

ios - Swift 中的结构值类型

swift - 如何使用 AVAudioPCMBuffer 播放声音

ios - 找不到 iPhone X 模拟器。使用 --verbose 标志运行 CLI 以获取更多详细信息

iphone - 如何水平翻转 UIButton 和背面的另一个 UIButton?

iphone - 创建我自己的 iTunes 图稿

ios - Swift:在 iOS8 中旋转倾斜按钮?