在viewdidload中
{
NSTimer *soundTimer = [[NSTimeralloc] initWithFireDate:[NSDatedate] interval:1target:selfselector:@selector(doSoundSomething:)userInfo:nilrepeats:YES];
[[NSRunLoopcurrentRunLoop] addTimer:soundTimerforMode:NSRunLoopCommonModes];
}
-(void)dealloc
{
[soundTimer invalidate];
soundTimer = nil;
}发现不会调用dealloc