views:

304

answers:

3

I'm coding an iPhone app annd I currently have a View that looks like this:

alt text

I'm wondering if there is a way to make it shiny and glossy like the Phone.app call screen.

Thanks!

A: 

I think you should ask on doctype.com, they probably have the answer to your question :)

sfa
Why would Doctype have any answers to a programming question?
Ziggamorph
+3  A: 

You could create a semi-transparent image that looks like glass, and overlay it.

A competent graphic designer can help you. You can either find someone the usual way, or get someone from crowdspring.om or 99designs.com. Almost anyone with decent PS skills can make an image have a sheen.

You can even Google sheen image photoshop and I bet it will tell you how.

Andrew Johnson
+2  A: 

If you're looking to draw glossy gradients on UIViews, I provide some code in this answer to do that.

Going beyond that, I have published the source code for a sample application which shows how to draw even more polished glossy buttons and how to replicate the glossy highlights that Apple uses in some of the built-in user interface elements (in this case, I replicate UIAlertView's style).

This application was written for the class I teach on advanced iPhone development, for which the course notes are available here in VoodooPad format. The section on Quartz 2D explains how this drawing code works.

Brad Larson
This answer is better than my answer... my answer is kind of a hack. My answer may be easier to execute for the Quartz uninitiated, but the OP would learn a lot from this method.
Andrew Johnson