开发者

Background Thread in iPhone

is it possible in iPhone to run any main Background thread which go for a method after every 5 s开发者_StackOverflow社区econds and it keeps on doing this until my application is closed.while i can go to other screens and that thread keeps on running.

PLease guide or give me some code snippet for this..

Thanks a bunch


try performSelectorInBackground from AppDelegate or fire a timer from appDelegate and invalidate that timer when application is going to resignActive.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜