버튼에 이미지 추가?

18.08.13 21:42 작성 조회수 143

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!

답변 1

답변을 작성해보세요.

0

안녕하세요.

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

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