简体   繁体   English

iPhone 6和6以及尺寸缩放

[英]iphone 6 and 6 plus size scaling

I am surprised how I was unable to find anything on this matter clearly addressing the How-To's rather than what to expect from Apple in the new iOS. 令我惊讶的是,我无法在此问题上找到任何明确解决“操作方法”的东西,而不是新的iOS对苹果的期望。

I am developing an application from scratch now and whenever I use the simulator of iphone 6 and iphone 6 plus in the xcode IDE, i get things misplaced in the screen such as shown in attached screenshots. 我现在正在从头开始开发应用程序,每当我在xcode IDE中使用iPhone 6和iPhone 6 Plus的模拟器时,都会在屏幕上放错地方,如所附的屏幕快照所示。

How can I build an app that would work on all iPhones the same way (autoscale or auto-resize)? 如何构建可以在所有iPhone上以相同方式(自动缩放或自动调整大小)运行的应用程序? If this has been answered before, please lead me to that topic/thread since I wasn't able to find anything decent and clear explaining this. 如果以前已经回答过这个问题,请引导我进入该主题/主题,因为我找不到任何体面的东西并清楚地解释了这一点。 在此处输入图片说明在此处输入图片说明

在此处输入图片说明

It's all about autolayouts. 这都是关于自动布局。 Here is good article for You: http://mobileoop.com/how-to-use-auto-layout-in-xcode-6-for-ios-7-and-8-development 这是给您的好文章: http : //mobileoop.com/how-to-use-auto-layout-in-xcode-6-for-ios-7-and-8-development

Or the official Apple: Auto Layout Guide 或官方Apple: 自动版面配置指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM