ちらつきボタンを取得したいので、次のようにコーディングして、次のようにボタンを初期化します。
_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];
ボタンがあいまいですが、選択できず、送信者を受信できません。送信者を受信できない理由を知っている人はいますか?