Best way to performselectoronmainthread in objective c?

前端 未结 4 2169
离开以前
离开以前 2021-02-09 05:44

I\'m writing a client-server app to iPhone. And I have a question about threading. When I access my online database from the device, I need to do this on a separate thread to no

4条回答
  •  野性不改
    2021-02-09 06:11

    since you are passing instance variables, another option would be to pass self and make self thread safe.

提交回复
热议问题