search

Home  >  Q&A  >  body text

c++ - NSTimer、NSThread 和 NSRunloop 之间区别?

NSTimer、NSThread 和 NSRunloop 之间有些什么区别,NSTimer与NSThread之前的关系?

ringa_leeringa_lee2803 days ago537

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 11:08:16

    • NSTimer: timer object, method call in the future selection object.
    • NSThread: thread class. That is, create a thread.
    • NSRunLoop: In fact, the essence of NSRunLoop is a message mechanism processing mode. In a sense summarizes and adapts a selection of Unix system calls, manages and schedules input source events and thread timers.

    Reference link: stackoverflow

    reply
    0
  • Cancelreply