Apple Watch Images not showing on simulator

霸气de小男生 提交于 2019-12-18 04:52:45

问题


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?


回答1:


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:



来源:https://stackoverflow.com/questions/27299572/apple-watch-images-not-showing-on-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!