0
이전의 Simon 게임과 비슷하게 사용자에게 버튼 시퀀스 &을 표시 한 다음 다시 반복하도록하고 싶습니다. 내가 붙어있는 곳은 500ms 동안 강조 표시된 첫 번째 버튼을 보여 주며 100ms를 기다리며 500ms 동안 강조 표시된 두 번째를 표시하고 또 다른 100ms를 기다리며 세 번째 &을 표시합니다. 나는이 블록에 오긴했는데 다른 Stackoverflower'ers에서일련의 버튼을 강조 표시하려면 어떻게합니까?
:
redButton.highlighted = YES;
[UIView beginAnimations:@"" context:nil];
[UIView setAnimationStartDate:[NSDate dateWithTimeIntervalSinceNow:1]];
[UIView setAnimationsEnabled:NO];
redButton.highlighted = NO;
[UIView commitAnimations];
[UIView beginAnimations:@"" context:nil];
[UIView setAnimationStartDate: [NSDate dateWithTimeIntervalSinceNow:2]];
[UIView setAnimationsEnabled:NO];
blueButton.highlighted = YES;
[UIView commitAnimations];
redButton 강조하지만, 후속 조치 중 어느 것도 발생하지.