简体   繁体   English

XCode故事板不显示场景

[英]XCode storyboard doesn't show scene

After finishing work on one of my screens in my swift project yesterday. 在昨天完成我的快速项目中的一个屏幕上的工作后。 I came back to modify it today and saw this: screenshot http://i60.tinypic.com/zn7qbq.png 我今天回来修改它,看到了: 屏幕截图http://i60.tinypic.com/zn7qbq.png

The screen is still working properly at runtime, I have no idea what could cause this. 屏幕在运行时仍然可以正常工作,我不知道是什么原因引起的。 (Xcode 6.1, iOS 8.2) (Xcode 6.1,iOS 8.2)

Copy the ViewController by activating the ViewController you want to be copied like shown in your picture. 如图所示,通过激活要复制的ViewController来复制ViewController。 Then press command + x to, click into the storyboard and then command + v to paste it again. 然后按command + x至,单击进入情节提要,然后按command + v再次粘贴。

NOTE 注意

Your segues will be gone, so remember their identifiers and from where, to where they go before copying / pasting the ViewControllers. 您的任务将消失,因此在复制/粘贴ViewController之前,请记住它们的标识符以及标识符的位置。

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

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