UIKit and GCD thread-safety

前端 未结 2 1566
借酒劲吻你
借酒劲吻你 2021-01-15 01:23

Many of the posts say that UIKit is totally not thread safe. Now on Apple documentation for GCD we can read that it\'s the DRAWING that is not thread safe. So would code lik

2条回答
  •  感动是毒
    2021-01-15 02:20

    In this example, you're not changing any values so yes,it's ok. Updating UI from background thread is not.

提交回复
热议问题