Quote:
Originally Posted by aryaxt
thanks, but i am generating the button through code
Do you know how to code that?
Thanks in advance
|
Try this code...
Code:
[yourButton setBackgroundImage:[UIImage imageNamed:@"image.png"] forState:UIControlStateDisabled];
(Tip: Use the same image.png you used for normal state)
Hope it helps!
__________________
“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.” Anonymous
Follow me on Twitter
http://twitter.com/stolidimran
Last edited by stolidimran; 10-07-2009 at 04:45 AM.
|