2013-08-02 53 views

回答

1

這將是您最好的選擇。這大致是什麼樣子:

UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(videoTapped:)]; 
[videoView addGestureRecognizer:recognizer]; 

... 

- (void)videoTapped:(UITapGestureRecognizer *)recognizer { 
    [UIView animateWithDuration:0.25f animations:^{ 
     buttonView.alpha = (CGFloat)!buttonView.alpha; 
    }]; 
} 

讓我知道如果您有任何其他問題。

+0

這是應該切換?因爲我不確定它是否會這樣做。 – Morkrom