Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-07-2009, 04:41 AM   #5 (permalink)
stolidimran
Registered Member
 
Join Date: Aug 2009
Location: Lahore, Pakistan
Posts: 32
stolidimran is on a distinguished road
Send a message via MSN to stolidimran Send a message via Yahoo to stolidimran Send a message via Skype™ to stolidimran
Default

Quote:
Originally Posted by aryaxt View Post
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.
stolidimran is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,282
Threads: 93,959
Posts: 402,319
Top Poster: BrianSlick (7,971)
Welcome to our newest member, kurtwatson
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:00 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.