Silver Challenge _As Simple As it Gets, HOWEVER


#1

there is a bug here that I can’t seem to figure out. Help much needed.

BNRQuizViewController.m


...

- (IBAction)showQuestionButtonPressed:(UIButton *)sender
{
...

//*ADDED ANIMATION
    float newX = 550.0f;
    float newY = 78.0f;
    
    
    [UIView transitionWithView:self.questionLabel duration:1 options:UIViewAnimationOptionCurveEaseOut animations:^(void){ self.questionLabel.center = CGPointMake(newX,newY); self.questionLabel.alpha = 0.0f;} completion:^(BOOL finished){
        
        
            // Display the string in the question label
            self.questionLabel.text = self.questions[self.currentQuestionIndex];
        
            float newX = -75.0f;
            float newY = 101.0f;
        
            self.questionLabel.center = CGPointMake(newX, newY);
        
            newX = 90.0f;
        
            [UIView transitionWithView:self.questionLabel duration:0.3 options:UIViewAnimationOptionCurveEaseIn animations:^(void){self.questionLabel.center = CGPointMake(newX, newY); self.questionLabel.alpha = 1.0f;} completion:^(BOOL finished){
            
            
            }];
        
        }];
...
}

#2

solved it.

took me the whole day yesterday and today. so simple.

just put “self.answerLabel.text = @”???"" inside the animation “complete”.