Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get the UIButton's background image

I need your suggestions: I want to know how to set the UIButton's backgroundImage image in UIImageView.

i.e. If I touch on the button, the button's background image should be set on UIImageView.

Is it possible? If yes then how?

like image 734
Shrey Avatar asked Dec 07 '10 17:12

Shrey


1 Answers

UIImage *image = self.myButton.currentBackgroundImage;

Apple Documentation for UIButton

like image 68
GendoIkari Avatar answered Oct 25 '22 15:10

GendoIkari