a NSTimer in While Loop
问题 Greeting !! The following codes are now I am doing : BOOL bJobDone = NO ; bBrickDropDone = NO ; //global var here !! NSTimer* timer = nil ; while(bJobDone==NO) { if(timer == nil) { timer = [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(dropBrick:) userInfo:nil repeats:YES]; } if(bBrickDropDone==YES) { bBrickDropDone = NO ; [timer invalidate] ; timer = nil ; if([self MarkBrickBomb]==YES) { bJobDone = NO ; [self dealBomb] ; if([self AllClean]==YES) { bJobDone = YES ;