Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はたくさん検索しましたが、ボタンを押すと UIImageView を暗くする方法が見つかりません...
フィルターなどで試してみましたがだめでした。
では、どうすればこれを行うことができますか?
元のビューに黒の不透明度の低いオーバーレイ サブビューを追加するのはどうですか?
ここには、いくつかの可能な解決策があります。
UIImageView に不透明度 0.3 の黒いオーバーレイを追加する