iOS Playground doesn#39;t show UI preview(iOS Playground 不显示 UI 预览)
问题描述
我使用 XCode 7.1 创建了一个简单的 Playground,并且输入了以下简单代码:
playground 运行时不显示 UIKit 对象预览,只显示调试信息:
我做错了什么?
打开预览面板:View > Assistant Editor > Show Assistant Editor
然后在你的代码中:
<块引用>
别忘了给你的视图一个可见的框架.
<小时>
Ps:在 Xcode 9 之后,你可以创建一个默认视图的 Playground
I've created a simple playground with XCode 7.1 and I've typed this simple code:
When the playground runs, it doesn't show UIKit object preview, but only debug information:
What am I doing wrong?
Open the preview panel: View > Assistant Editor > Show Assistant Editor
Then in your code:
Don't forget to give your view a visible frame.
Ps: after Xcode 9, you can create a playground with default view
这篇关于iOS Playground 不显示 UI 预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!