1. sleepForTimeInterval,此函数会卡住当前线程,一般不用


2. performSelector,定制好延迟任务后,不会卡主"当前线程"(3秒后运行download:方法)


3.3秒后回到"主线程"运行block中的代码


4.3秒后自己主动开启"新线程"运行block中的代码

相关文章:

  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-10-03
  • 2021-07-11
猜你喜欢
  • 2022-12-23
  • 2021-10-23
  • 2021-06-04
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案