【发布时间】:2010-08-17 03:07:36
【问题描述】:
如果我有一个在 viewdidload 中启动的 NSTimer,那么在离开该视图时将其无效的合适位置在哪里?是不是也要放出来?
【问题讨论】:
-
谢谢,如果我使用了 checkeventsTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(checkEvents) userInfo:nil repeats:YES];这是否意味着我需要释放它或只是使其无效?
标签: iphone xcode sdk nstimer invalidation