Inner Shadow in UILabel

后端 未结 6 1715
庸人自扰
庸人自扰 2020-12-04 05:10

is it possible to create such a UILabel with inner and outer shadow?

alt text http://dl.getdropbox.com/u/80699/Bildschirmfoto%202010-07-12%20um%2021.28.57.png

<
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 05:42

    You will have to do your own custom drawing to get an inner shadow. There's no way currently to do it with a standard UILabel.

    Here's a reasonable explanation on doing inner shadow with Quartz.

    Inner shadow in Core Graphics

提交回复
热议问题