강의

멘토링

로드맵

Inflearn Community Q&A

sylee9707111623's profile image
sylee9707111623

asked

Practical UI composition strategy using iOS AutoLayout - Creating an advanced UI like KakaoTalk

basic12_align

버튼에 이미지 추가?

Written on

·

234

0

i'm sorry that i can only type in English because I am in the states.:((

Since what you are doing is to simpully put an image on top of a button, are there any other better ways to incorporate the image to the button while still maintaining the gesturerecognizer of the button? From my experience if there were any taps on the image part of the button the tap would not trigger the function specified from the gesture recognizer code. you can reply to me using korean and I would understand. Thank you!

iOS-Autolayout

Answer 1

0

enilv0529님의 프로필 이미지
enilv0529
Instructor

안녕하세요.

버튼위에 이미지를 올려 놓으면 이미지 interactionEnable을 false로 하면 아래에 있는 버튼이 눌리게 됩니다.

또는 버튼 뒤로 이미지를 두고 버튼을 투명으로 하는것도 좋을 것 같네요.

sylee9707111623's profile image
sylee9707111623

asked

Ask a question