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. …

Thrown Errors

There's many ways to handle errors in Swift. For some errors, using throws is a great way to handle errors without crashing the system. Download the exercise file. You'll find a project with an embedded playground.  While there's a lot better ways to do this, I'll use an example of a function coffee(name:) that finds …

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 …

Use Test Flight

One of the really cool features of the App development process is getting real users to beta test your app. iOS  has a great way to do this with the test flight app. This week, I'll summarize the steps to set up Test Flight for your app to beta test. I'll be using my own …

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 …