iPhone-SDK:Call a function in the background?

前端 未结 3 617
野的像风
野的像风 2020-12-09 00:12

Is it possible to call my function in the background after certain interval programmatically in iPhone SDK development? I want to call one particular function in the backgro

3条回答
  •  感动是毒
    2020-12-09 00:56

    To call the function on the main thread, use an NSTimer.

    To call it on another thread, create an NSOperation and set up an NSOperationQueue to call it.

提交回复
热议问题