Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

spaceman816

macrumors member
Original poster
Jul 29, 2009
30
0
I want users to click one button, hold, and select a different button by simply letting go over it (simlar to the way holding a file menu on a computer works).
Simply doing a touch down method on the first button and a touch up on the second doesn't work- touch up doesn't seem to react unless the touch down took place in the same button.
Sorry if I worded that confusingly.
Thanks
 
I think it's pretty intuitive.
I'm just trying to do a color picker of a few colors that you click and hold to make appear, and let go to select.
 
I think it would be more natural for the user to click a button to bring up the color selection tool and then click the color that they want to use. What you describe feels a bit awkward to me. And sorry I don't know how to implement what you've asked.
 
Rather than using UIButtons, you're probably better off creating a single custom view whose touch events you override, since they all pass a touch position which you can act upon based on your "button"s' positions in the view.
 
Rather than using UIButtons, you're probably better off creating a single custom view whose touch events you override, since they all pass a touch position which you can act upon based on your "button"s' positions in the view.

I agree with jnic, if you're not using the standard interface behavior for buttons, that's an indication not to use buttons to implement it. Use a custom view, override the methods in that view to do what you want.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.