Tag: class methods

UIColor Class Extensions

A couple of weeks ago, I added  a column on converting hex colors to UIColor. That was a function you had to copy and paste into your code. I’ve also shown you how to use the assets to keep color names handy. What would… Continue Reading “UIColor Class Extensions”

A Swift Tutorial for Working with Classes Part 3: Abstract classes.

In the first tutorial in this series we introduced classes. In  the second we did some more advanced manipulations of classes. In both, we discussed the idea of inheritance, which has one final possibility: a class whose only purpose is to define other classes.… Continue Reading “A Swift Tutorial for Working with Classes Part 3: Abstract classes.”

A Swift Guide to Working with Classes Part Two: Advanced Class Techniques

In our first part we looked at some of the basics of classes in Swift. In this part, we look at some of the more advanced features of classes which developers use every day — often without knowing it. We’ll explore first a bit… Continue Reading “A Swift Guide to Working with Classes Part Two: Advanced Class Techniques”

A Swift Tutorial to Working with Classes Part 1:Basic Classes

I find a lot of confusion among beginners and a handful of intermediate developers about what is a class. Object oriented languages like Swift, Objective C or C++ use classes to organize everything in the language and the API’s. You might have heard words… Continue Reading “A Swift Tutorial to Working with Classes Part 1:Basic Classes”

KinderSwift 7: Introduction to Functions

This session we will learn about functions by making colors with UIColor. Transcript Welcome to lesson 7 of KinderSwift. In our last lesson we used this to convert a Int into a Double and this to convert a Double into a Int. Both of… Continue Reading “KinderSwift 7: Introduction to Functions”