Tag Archives: drop shadow

Fun with layers

In this post, I’ll explain how to add a border, rounded corners, and drop shadow to any UIView using some simple CALayer properties.  I’m not a CALayer guru, but these few tricks from the layer world are particularly nice to know about. These properties are present for every UIView, since every view is actually drawn […]

Drop shadows on text

UILabel is built with a handy shadow feature, but it doesn’t always look the way you might want – in this post I’ll describe the ShadowedLabel subclass which draws nicer shadows.  (Code links below.) Default UILabel shadows This code: generates a shadow that looks like this: It’s not the end of the world, but it’s […]