应用程序不能在iphone6​​正确显示 [英] App not displaying properly on iphone6

查看:142
本文介绍了应用程序不能在iphone6​​正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在设备上运行我的项目的问题。这里有两张图片。第一个显示了项目的外观,当我在模拟器上运行它等。第二个是在同一个项目在设备上运行:

I am having an issue with running my project on the device. Here are two pictures. The first one shows what the project looks like when I run it on the simulator. The second one is the same project run on the device:

在模拟器

在设备

正如你在第一个截图中看到,我使用的自动布局和大小的类。在属性检查器我有大小设置为iPhone 4.7寸,但如果我设置为推断同样的事情发生。我也做了网络上的研究公平一点,看看能不能找到解决办法,但都无济于事。我是相当新的,因此它可能是一些简单。任何帮助AP preciated。

As you can see in the first screenshot, I am using Auto Layout and Size classes. On the attributes Inspector I have the size set to iPhone 4.7-inch, but if I set to to "inferred" the same thing happens. I have done a fair bit of research on the web to see if I can find the solution but to no avail. I am fairly new so it could be something simple. Any help appreciated.

更新:我已经设定的尺寸来推断,关掉规模类和经销商的布局和我已经从100个像素调整所有的按钮为80像素,现在它看起来很好的设备上,但我得到在模拟器上相反的问题这是精呢。这是一个问题做iPhone 6加?

Update: I have set the size to inferred and turned off size classes and auto layout and I had resize all the buttons from 100 pixels to 80 pixels and now it looks fine on the device but I get the opposite problem on the simulator which was fine then. Is this an issue to do with iPhone 6 plus?

请参阅下面的截图。左侧的故事板和右侧的模拟器。

See next screenshot. On the left the storyboard and on the right the simulator.

屏幕截图

推荐答案

你有没有属性设置为它..?由于您使用的大小类。

Have you set attribute for it..? Because you are using size class.

检查一下。如果未设置然后将其设置为所有对象。

Check it. If not set then set it for all objects.

这篇关于应用程序不能在iphone6​​正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆