UILabel with some effects
Can anyone help me how could I achieve an effect like this image sample image on a UILabel.
As you can see there some开发者_运维百科 like a stroke/bevel effect on the label.
I got this image from a clock app so it means that its not a static image.Thanks in advance..
That's very likely not a label. It is most probably drawing bitmaps. That is, where you create an image with all your letters, numbers and punctuation looking like you want it to look, and you render portions of that image where you want them to write words, draw numbers, etc.
The other option you have, if it's a repeating pattern, is to create a very small image (a couple pixels high (as in 2) if you want interlaced look like in that image) and use UIColor
to create a colour based on a pattern image, and set the font's colour in the label. That might work, I have not tested doing things that way. The look will be flat however, not bevelled going this route.
精彩评论