ios - iOS 应用程序运行时看不到图像和按钮 - Swift

标签 ios swift swift4

当我尝试运行我的应用程序时(无论是虚拟机还是我的真实手机),我看不到图像和按钮(当我单击它应该在的位置时,按钮工作正常,但他只是没有出现)。

这是我的调试窗口的日志:

2018-11-18 21:48:48.440964+0100 Dicee[10171:751257] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.

它应该是这样的:

enter image description here

这就是我所看到的:

enter image description here

最佳答案

抱歉重复发帖,但我刚刚找到了一个原因:图片顺序错误 - 我在放置其他图像和按钮后编辑了背景图像,以便所有内容都被背景图像覆盖。解决方案是移至文档大纲中的顶部背景图像。 希望这能帮助像我这样的新手;)

关于ios - iOS 应用程序运行时看不到图像和按钮 - Swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53365381/

相关文章:

ios - iOS 编程是否会使用 Clang 和 llvm 进行虚拟化?

ios - Objective-C 消息被发送到已释放的 'UIActivityIndicatorView' 对象

ios - 错误 : Unrecognised selector sent to instance when tap on UISegmentedControl

swift - 从一个 UIStoryBoard Controller 切换到另一个 UIStoryBoard Controller

swift - Swift 4 中的过滤字典在 Xcode 中失败,但在 Playground 中成功

ios - 关闭抽屉 Controller 后,将在 swift4 中调用哪个 View Controller 生命周期方法?

ios - 是否可以使用 AVPlayer 缓存 HLS 片段?

swift - 试图 swift 概括

ios - 如何调用依赖于 reactivecocoa4 中不同信号生成器的信号生成器

ios - 如何自定义不同图片和位置的 UIRefreshControl?