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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2008, 10:40 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 19
Default Changing RoundedRectButton Color on Press

I know how to work with button images and those are all pretty well documented, but is there a way to change the standard Rounded Rect Button to have a different color than the blue? I hope this isn't a dumb question, but I have looked and tried almost everything (in my mind).

Thanks!
Berko is offline   Reply With Quote
Old 10-22-2008, 12:30 PM   #2 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

Code:
setTitleColor:forState:
PhoneyDeveloper is offline   Reply With Quote
Old 10-22-2008, 05:17 PM   #3 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 19
Default

Yes, but that's only for the title. I'm looking for the button color to change.
Berko is offline   Reply With Quote
Old 10-22-2008, 06:00 PM   #4 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

If you have a background image for the hilight state it doesn't make it blue, it just draws the image when you touch the button and the text is drawn on top.

If you make the button type custom then the button doesn't darken the button when you touch it and it doesn't draw the frame. If you have custom background images for normal and hilight you just see those images behind your text.
PhoneyDeveloper is offline   Reply With Quote
Old 10-22-2008, 09:52 PM   #5 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 19
Default

Yes, I understand everything you have told me thus far. If the answer is that I can't do this without using a background image, I'll take that as an answer. My question was if there was a way to do it without using a background image.
Berko is offline   Reply With Quote
Old 10-22-2008, 11:43 PM   #6 (permalink)
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

AFAIK, that's the answer.
PhoneyDeveloper is offline   Reply With Quote
Old 10-23-2008, 04:43 PM   #7 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 19
Default

Gotya...cool. I figured it was, but was hoping it wasn't. Not sure why that doesn't exist. Oh well!
Berko is offline   Reply With Quote
Reply

Bookmarks

Tags
change, color, rounded rect button, uibutton

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 232
16 members and 216 guests
ADY, Alsahir, cacao, dacapo, Dani77, Desert Diva, djohnson, F_Bryant, HemiMG, jansan, M@realobjects, MarkC, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:53 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0