tags:

views:

69

answers:

2

Hi! Need to create blurred shadow under UILabel. Same text but with blur and offset. Since NSShadow not supported in the iPhone SDK only way I see is Quartz render. Is there simpliest solution ? Thanks

A: 

For 3.1 and below, no. You must use CoreGraphics.

For 3.2 and above, you can get the layer, and set the shadowRadius property.

KennyTM
+1  A: 

I provide code to draw a shadow around a UILabel in my answer to this question. For an example of this in action, see the sample project I've created. A shadow of the same color as the text provides a nice blurring effect to the text in a label.

Brad Larson