How can I make UIView brilliant and brilliant?

I am encoding annd iPhone app. I currently have a View that looks like this:

height text

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

Thanks!

+4
source share
3 answers

You can create a translucent image that looks like glass and overlay it on a layer.

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

You can even use Photoshop in the Google sheen image format, and I'm sure it will tell you how to do it.

+5
source

If you want to draw glossy gradients on UIViews, I provide the code in this answer for this.

Going beyond this, I published the source code for an example application that shows how to draw even more shiny glossy buttons and how to replicate the glossy glare that Apple uses in some of the built-in user interface elements (in this case, I am replicating the UIAlertView style).

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

+9
source

You need to find / create custom graphics for the desired button, and then dress them on UIButton.

You may also consider using an easily accessible custom button component .

enter image description here

+1
source

Source: https://habr.com/ru/post/1301147/


All Articles