Ok so I use the iPhone SDK
On IB I used a rectangle button, once you press that button and hold, it goes a gray colour - I want to change that gray color to an image I made.
开发者_JAVA技巧So once the user touches the button, it goes to the image which I made.
Thanks
In Interface Builder, you'll need to change the button's type to "custom" and provide images for each control state that you need. In this case, it sounds like you'll need to set an image for "default" state and "highlighted" state.
精彩评论