UIImageView ๋‚ด๋ถ€์— GestureRecognizer๋ฅผ ๋„ฃ๊ณ  ์ด๋ฒคํŠธ๋ฅผ ๋ฐ›์œผ๋ ค ํ–ˆ๋”๋‹ˆ ๋™์ž‘ํ•˜์ง€ ์•Š์•˜๋‹ค.

userInteractionEnabled

  • UIImageView์˜ userInteractionEnabled์˜ ๊ฐ’์€ defaultValue๊ฐ€ false์ด๋‹ค.
  • UIView์˜ ๊ฐ’์„ ์ƒ์†ํ•ด์„œ ์‚ฌ์šฉํ•˜๋‚˜, UIImageView๋Š” ์ด๊ฐ’์„ ๋ฐ”๊พผ๋‹ค๊ณ  ํ•œ๋‹ค.

Reference