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.
私は画像を持っています。そのロゴまたは画像を押したときにURLを起動したいのですが、その画像ビューにibアクションを実装する方法...ロゴを配置するためにibで画像ビューを選択したことを提案できますか?
UIImageViewのサブクラスでUIControlはないため、ターゲット アクション メカニズムをサポートしていません。次の 2 つのオプションがあります。
UIImageView
UIControl
UIButton
userInteractionEnabled = YES;