简体   繁体   English

iOS模拟器未显示对象

[英]iOS Simulator is not displaying objects

I'm completely new to iOS and Swift development and trying to write hello world program by following this tutorial . 我是iOS和Swift开发的新手,并按照本教程尝试编写hello world程序。

When I ran my code I cannot see components. 运行代码时,看不到组件。 Seems like they are located on top of the simulator but I can't see. 好像它们位于模拟器的顶部,但我看不到。

Xcode version 6.2 target iOS 7.0 and later. Xcode 6.2版针对iOS 7.0及更高版本。

I execute simulator iPhone 6. This is what I can see: 我执行模拟器iPhone6。这是我可以看到的:

在此处输入图片说明

Can someone point me where should I change to get this interface fit to phone size? 有人可以指出我应该在哪里更改以使该界面适合手机尺寸? Any help would be appriciated. 任何帮助将被申请。

Follow these steps 跟着这些步骤

  • Open the storyboard. 打开情节提要。
  • Select the View Controller 选择视图控制器
  • Select the fourth icon in the right side. 选择右侧的第四个图标。
  • In simulated Metrics we have an option for size. 在模拟指标中,我们可以选择大小。 Change it to iPhone 4 inch or as per your requirement. 根据您的要求将其更改为iPhone 4英寸。

For more reference see the screen shot: 有关更多参考,请参见屏幕截图:

在此处输入图片说明

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

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