What Needs To Be on Main Thread?

后端 未结 3 1678
执念已碎
执念已碎 2021-01-02 23:47

I have written a little define called ensureInMainThread (and I use it quite a bit). However, I\'m not sure exactly which user interface methods require bei

3条回答
  •  一向
    一向 (楼主)
    2021-01-03 00:30

    Rule of thumb: Anything that updates the interface must be on the main thread.

提交回复
热议问题