开发者

How can I make a UIView glossy and shiny?

开发者 https://www.devze.com 2022-12-19 20:55 出处:网络
I\'m coding an iPhone app annd I currently have a View that looks like this: alt text http://drop.io/download/public/hzkqdxyhlev1qul5hx3z/b7fbcecca653fb1a4961f2aecca5ba76c614ad0b/4009e6e0-fa41-012c-6

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

alt text http://drop.io/download/public/hzkqdxyhlev1qul5hx3z/b7fbcecca653fb1a4961f2aecca5ba76c614ad0b/4009e6e0-fa41-012c-64cb-f7b7db223b21/410e4f50-fa41-012c-a999-f4d9d7fd044b/v2/thumbnail_large

I'm wondering if there is a way to make it shiny and glossy开发者_如何学Go like the Phone.app call screen.

Thanks!


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.


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.


You should find/design custom graphics for the button you want and then dress them on a UIButton.

You may also consider using a readily available custom button component.

How can I make a UIView glossy and shiny?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号