Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is [WkInterfaceDevice addCachedImage:] Thread Safe?

Tags:

ios

watchkit

Can I add an image to the WkInterfaceDevice image cache from a background thread? I couldn't find any documentation if the API was safe to use in a background thread.

Thanks! Stephen

like image 767
Stephen Johnson Avatar asked May 02 '26 23:05

Stephen Johnson


1 Answers

According to an Apple employee on the Developer Forums, you can use addCachedImage: from a background thread. In fact, that's how I use it in my app.

like image 105
Mike Swanson Avatar answered May 05 '26 12:05

Mike Swanson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!