简体   繁体   中英

Is [WkInterfaceDevice addCachedImage:] Thread Safe?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM