设置具有按钮的视图的alpha时,按钮不起作用?

时间:2016-06-23 05:25:24

标签: ios xcode uibutton stack-overflow alpha

- (void)animateView:(UIView *)animatedView afterDelay:(float)delay {
    NSLog(@"delay is here which i am looking for %f",del);

    [UIView animateWithDuration:0.5 delay:9 options:UIViewAnimationOptionAllowUserInteraction
                     animations:^ {
                         animatedView.alpha = 0.2f;

                     } completion:^(BOOL finished) {
                         [UIView animateWithDuration:9 animations:^ {
                             animatedView.alpha = 0.7;
                         } completion:^(BOOL finished) {
                             [self animateView:animatedView afterDelay:9 ];
                         }];
                     }];

0 个答案:

没有答案