objective-cuivieweffectsquartz-core

Glass effects UIView


I would like to know how it is possible to add a glass effect on a UIView

I would like something like this effects on the gray translucent view you can see here :

enter image description here

Thanks


Solution

  • There's nothing like glass effect in UIView .All you can do is set the opacity of the view between 0 and 1.Also the view shown above has fine set of images which makes it seem like your "Glass Effect".

    Well If you what your UIView to be "shiny and elegant" , you can do it in two ways :-

    1>You can simply have effects in images created with photoshop as it will decrease the overhead of doing the same with programming.

    2>you can have it using core-Graphics library provided by apple then you might have to get into a more complex world of drawing and see the Tutorial to get Gloss Effect

    Glossy Buttons By Ray wendelich

    Another Tutorial on Glossy button