Making an image a button

Discussion in 'iOS Programming' started by hoosierfan24, Sep 15, 2009.

  1. hoosierfan24 macrumors member

    Joined:
    Jul 31, 2009
    #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
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    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.
     
  3. hoosierfan24 thread starter macrumors member

    Joined:
    Jul 31, 2009

Share This Page