Apple Watch 图像未在模拟器上显示 [英] Apple Watch Images not showing on simulator

查看:23
本文介绍了Apple Watch 图像未在模拟器上显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Apple Watch,我只想在故事板中设置一个图像.它是一个 png 文件,我在故事板中设置了它,但它没有显示在模拟器中.我已经尝试了所有方面和拟合选项.我相信该视图称为 wkinterfaceimage.我也试过以编程方式添加,但也没有出现.未选中隐藏.关于我可能缺少什么的任何想法?

I am working with the apple watch and I would like to just simply set an image in the storyboard. It is a png file and I set it in the storyboard, but it doesn't show up in the simulator. I have tried all of the aspect and fitting options. I believe the view is called a wkinterfaceimage. I have also tried adding programmatically and that does not show up either. Hidden is not checked. Any ideas of what I might be missing?

推荐答案

如果您将图像作为文件包含在应用程序包中,请选择该文件,然后选择 File Inspector 并在 目标会员:

If you have your image included as a file in your app's bundle select the file, choose File Inspector and add the target under Target Membership:

这篇关于Apple Watch 图像未在模拟器上显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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