Actions in Table Views

Sometimes table views could use a few buttons. There's two delegates which create swipe buttons on table view cells. Let's learn how you can implement these buttons and an interesting hidden feature you can do with them.  There is two delegate methods, one for the leading swipe configuration and one for the trailing Swipe configuration. …

Ranges in Swift

You’ve probably used ranges in loops, without knowing it, but ranges are really a type in Swift. Have you ever thought about ranges and all their power? I’ll show you a few things you might want to know about Swift ranges. I've put a playground into a Project for an exercise file. I added there an …

Sliders as Knobs

You've seen other apps rotate views, but you may have no idea how to do it yourself. Let me show you one way to rotate views. We'll make a simple knob control you might be able to use in your apps. Download the example file. On the storyboard, I added an UIImageView of a knob …

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 …