开发者

get the UIButton's background image

开发者 https://www.devze.com 2023-01-29 13:01 出处:网络
I need your suggestions: I want to know how to set the UIButton\'s backgroundImage image in UIImageView.

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 UIIm开发者_JS百科ageView.

Is it possible? If yes then how?


UIImage *image = self.myButton.currentBackgroundImage;

Apple Documentation for UIButton

0

精彩评论

暂无评论...
验证码 换一张
取 消