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-15-2009, 12:45 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
Default Coloured Buttons Question

Hi all,

I have a rather simple problem that is proving tricky to find a solution:

I have a UIView and on this are UIButtons. I want the buttons to have a somewhat better look than the standard white background. My two ideas were a) to have glass looking buttons, or b) something like the UIBarButton with it's tinted gradient colours.

Is there a property where I can set this? (I read that tintColor has been removed?) Or, is the only way to use a graphic image instead?

Cheers,

Jase
coulls is offline   Reply With Quote
Old 10-15-2009, 08:04 PM   #2 (permalink)
Registered Member
 
pjlocko's Avatar
 
Join Date: Jun 2009
Location: SoCal
Posts: 63
Default

I wonder if the custom property would allow you to select a graphic image for the button?????
pjlocko is offline   Reply With Quote
Old 10-16-2009, 09:29 AM   #3 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
Default

Hi there,

I can create a graphic if that's what needs to be done - but was wondering if there's actually a setting that doesn't require me to ship 50 different sized images for the app. ha ha!

Jase
coulls is offline   Reply With Quote
Old 10-16-2009, 10:02 AM   #4 (permalink)
Humbled Student
 
Dutch's Avatar
 
Join Date: Apr 2009
Location: Long Island, NY
Age: 32
Posts: 883
Send a message via AIM to Dutch
Default

Check out this tutorial. It explains the whole process of using a single image for multiple buttons of any size.

He makes very good use of

Code:
[UIImage stretchableImageWithLeftCapWidth:W topCapHeight:H];
Dutch is offline   Reply With Quote
Old 10-16-2009, 12:47 PM   #5 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
Default

Quote:
Originally Posted by Dutch View Post
Check out this tutorial. It explains the whole process of using a single image for multiple buttons of any size.

He makes very good use of

Code:
[UIImage stretchableImageWithLeftCapWidth:W topCapHeight:H];
Thanks! That's exactly what I needed!

Cheers,

Jase
coulls is offline   Reply With Quote
Reply

Bookmarks

Tags
color, colour, tintcolor, 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: 265
20 members and 245 guests
2WeeksToGo, @sandris, AdamL, ADY, BrianSlick, Dani77, diyora, F_Bryant, GHuebner, HDshot, headkaze, mer10, Oral B, prchn4christ, Rudy, smithdale87, Thompson22, timle8n1, Touchmint, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,748
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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