NSTimer bad access
问题 I'm trying to create an NSTimer, then invalidate and release it, then set it to a new timer. However, I am getting an EXC_BAD_ACCESS when trying to set the timer member var again. Code below: 1) I set the timer member var (it's set to retain) self.mPageTimer = [NSTimer scheduledTimerWithTimeInterval:kPageTimerInterval target:self selector:@selector(pageTimerCallback) userInfo:nil repeats:NO]; 2) I let it go [mPageTimer invalidate]; [mPageTimer release]; This results in the crash when I try to