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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-11-2010, 03:04 AM   #1 (permalink)
Registered Member
 
screwtape's Avatar
 
Join Date: Jul 2010
Location: Nottingham
Posts: 54
screwtape is on a distinguished road
Send a message via Skype™ to screwtape
Question How to create a raised effect button?

I've been trying to build a button graphic in CoreGraphics with a rounded rectangle which appears raised (i.e. with highlights on one corner, and shadow on the opposite corner).

Is there an easy way of doing this? I can see methods for doing gradient fill, but not for doing a gradient line drawing.

I guess I could gradient fill a marginally larger shape, and then cover it with a smaller one, but that sounds unnecessarily complex and likely to have a performance penalty.

One of the reasons I don't want to just use images is that I am going to want different colours in different places so that would involve lots of images.

Any help or suggestions would be great. Thanks!
screwtape is offline   Reply With Quote
Old 07-11-2010, 01:13 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 8
bplymale is on a distinguished road
Default

Have you looked at this ?

UIGlassButton maker. Very simple app for creating Glass Buttons for iPhone applications | tapadoo

Probable modify to your specifications.

B
bplymale is offline   Reply With Quote
Old 07-11-2010, 04:08 PM   #3 (permalink)
Registered Member
 
screwtape's Avatar
 
Join Date: Jul 2010
Location: Nottingham
Posts: 54
screwtape is on a distinguished road
Send a message via Skype™ to screwtape
Default

Thanks for this! It's not quite what I'm looking for as I want to be able to have the colours set programatically, but it'll be good for apps where I'm not trying to do that.
screwtape is offline   Reply With Quote
Reply

Bookmarks

Tags
button, coregraphics, raised effect

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: 327
15 members and 312 guests
akphyo, alexP, cgokey, EXOPTENDAELAX, flamingliquid, guusleijsten, mariano_donati, ohmniac, Paul Slocum, PavelSea, SLIC, Sloshmonster, Sonuye857, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

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