I am making an Iphone game, and I would like a button to stop being clickable when the character moves in front of it. Do you know how this can be done?
Asked
Active
Viewed 42 times
0
-
i mean like how to make it so something behind a UIImageView is unclickable through the UIImageView. – Horton Jackson Sep 11 '13 at 09:10
-
http://stackoverflow.com/questions/3427619/disable-touches-on-uiview-background-so-that-buttons-on-lower-views-are-clickabl – Master Stroke Sep 11 '13 at 09:37
1 Answers
0
You need to identify button's frame whenever character enters. As soon as they hit the frame you need to do [button setEnabled:NO]
;

Neelam Verma
- 3,232
- 1
- 22
- 33