creating a view on a background thread, adding it the main view on the main thread

前端 未结 3 1423
我寻月下人不归
我寻月下人不归 2021-01-11 10:49

I am new to objective C, coming from .NET and java background.

So I need to create some UIwebviews asynchronously, I am doing this on my own queue using

<         


        
3条回答
  •  孤城傲影
    2021-01-11 11:22

    Most UIKit objects, including instances of UIView, must be manipulated only from the main thread/queue. You cannot send messages to a UIView on any other thread or queue. This also means you cannot create them on any other thread or queue.

提交回复
热议问题