Siddiqui Siddiqui - 7 months ago 29
iOS Question

How do I get an image from an UIButton?

I have Custom Buttons in my application in which I have set images. I want to get image from button and stored in UIImage variable. Kindly Guide me.


How about this?

UIImage *img = [button imageForState:UIControlStateNormal];