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

hoosierfan24

macrumors member
Original poster
Jul 31, 2009
89
1
Hello I am working on some updates for my app to make it more exciting looking and I was wondering if there was a way to make and image a button for example I want to make my button an eraser and when i tap the eraser it does the same thing as if i taped the button. I know how to put an image within a button but i want the image to be the button can anyone help
 
There's no difference between making an image a button and putting an image inside a button. Just set the image as the background image for the button, make it a custom button so it doesn't draw anything else. Voila, your image is a button.

If for some reason you really really don't want to do this then just put an empty button on top of your image view. Same thing.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.