Apple Watch 图像未在模拟器上显示 [英] Apple Watch Images not showing on simulator
问题描述
我正在使用 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屋!