UIButtonを、すでにのUIImageViewを背景に追加しています。UIButtonの画像は元の画像より暗いです
私はそれが動作しますが、UIButtonの画像があるconfigureCell
UIButton *mail = [[UIButton alloc] initWithFrame:CGRectMake(10, 270, 40, 40)];
[mail setImage:[UIImage imageNamed:@"mail.png"] forState:UIControlStateNormal];
mail.backgroundColor = [UIColor whiteColor];
[mail addTarget:self action:@selector(sendMail) forControlEvents:UIControlEventTouchUpInside];
[cell.contentView addSubview:mail];
にこのコードを入れ
暗いようだ私はこれらを試してみましたが、それは何も変わっていませんでした
mail.alpha = 1;
[cell.contentView bringSubviewToFront:mail];
誰にもこれと解決策の説明がありますか?
私は本当に理由を理解していないが、それはあなたに感謝します。 –