CALayer Masks

UI doesn't have to look like a rectangle. You might want a different shape for your icon. You can do that with layer masks. Let's learn how to set them up. Download the example files. You'll find an app with two square buttons. If you head over to the assets, you see I have a …

Tip: Image Literals

iOS Development tips weekly is a series you can find at the Lynda.com and LinkedIn Learning libraries. The first week of a week's tip will be available for free. After that, you will need a subscription to get access to it. Click the image at left  to view.  You'll find an amended transcript below. You’ve …

Swift Swift: Using Color and UIColor in Swift Part 1: RGB

[Updated to Swift 2.0/iOS9.0 9/18/15 SJL - errors corrected 11/20/15] I'm color blind, and that makes me a very good person to teach you about color and UIColor.  I've painted for many years and my color blindness does not detract but actually helps me pick colors.  These two examples, one a water-color of mine from …