Images on apple watch

前端 未结 4 2129
暗喜
暗喜 2021-01-06 10:14

I ran into a problem yesterday when my application was rejected. Apparently the images are not being displayed on the actual Apple Watch, however they are being displayed in

4条回答
  •  余生分开走
    2021-01-06 10:34

    Verify the filenames are correct and the images are placed in the correct target's asset library.

    WatchKit Images

    It is recommended that you place image resource files in the bundle of your WatchKit app (not in your WatchKit extension’s bundle). Placing them in the WatchKit app bundle lets you use the setImageNamed: method of this class to specify the animated image. Setting them using that method offers better performance by eliminating the need to transfer the images from the user’s iPhone to the Apple Watch. The other methods for setting an image must wirelessly send the UIImage object or image data that you provide to Apple Watch.

提交回复
热议问题