我想要一个闪烁的按钮,然后我像这样编码我像这样初始化按钮:
_btn = [[UIButton alloc] initWithFrame:CGRectMake(50, 50, 200, 200)];
[_btn addTarget:self action:@selector(test:) forControlEvents:UIControlEventTouchUpInside];
[_btn setBackgroundImage:[UIImage imageNamed:@"img2.jpg"] forState:UIControlStateNormal];
我像这样对动画进行编码:
[UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionRepeat|UIViewAnimationOptionAutoreverse animations:^{
_btn.alpha = 0.2;
} completion:nil];
按钮模糊但无法选择,无法接收发件人。有谁知道为什么收不到发件人?