テーブルビューの各セルに UIButton があります。クリックアクションが発生している間、uibutton を光らせたいです。コードを使用して背景画像として画像を設定しました
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(270,10,30,30);
[button setImage:[UIImage imageNamed:@"image.png"] forState:UIControlStateNormal];
[button addTarget:self action:@selector(action:) forControlEvents:UIControlEventTouchUpInside];
button.backgroundColor = [UIColor clearColor];
image.png は少し暗いイメージです。光った画像を表示してクリック効果を表示したいからです。
今度は、コードをクリックして image.png を光らせましょうか。または、同じ寸法で新しい光る画像 (image_glow.png など) を作成し、前のものを置き換える必要がありますか?
とにかく、これを実装する方法を説明してください....