dispatch_async has lag somewhere, can't find where. is there an NSLog problem?

前端 未结 3 2051
眼角桃花
眼角桃花 2021-02-10 09:59

So i have this code:

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{

//Bunch of code

NSLog(@\"Test\");

});

w

3条回答
  •  佛祖请我去吃肉
    2021-02-10 10:44

    Instead using //Bunch of code, you should paste the real code, otherwise it's hard to find your problem and waste our time. I guess you probably you update ui in the "bunch of code" which should be in main thread.

提交回复
热议问题