I am trying to set a image for a UIButton.
I don\'t know the difference between the setBackgroundImage:Forstate and setImage:Forstate:
Could anyone help me o
setImage:forState:
sets the image as the actual content of the button. For example, you can not see the button title even though you set it, because you have set an image as the content.
setBackgroundImage:forState:
sets the image as the background. In this case, you can set the title and it is displayed on top of the image.