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
The difference is in the framing
I will explain you with the help of example suppose your image size is 40*40 and button frame is 20*20 then if you use setBackgroundImage:forState: method the image will be displayed in 20*20 frame and if you use setImage:forState: method you will see a button with image size of 40*40 frame. This is the difference.
Happy Coding!!