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!
|