This content has 9 years. Please, read this page keeping its age in your mind.Don’t underestimate the enumerations in Swift. If you come from C or objective C there is a nice surprise for you. Enumeration are not based on integers, can have methods, initialisers, computed properties and conform to protocols. Additionally, we are going
Category: iOS 9
Structures 101 in swift
This content has 9 years. Please, read this page keeping its age in your mind.Structures is not another type in swift. If you have background in C or objective C you will be impressed with the functionality of structs in swift. Structures have initialisers, methods, comfort to protocols have extensions…convinced? Well, if start thinking that
Iterating through Collection Types in Swift
This content has 9 years. Please, read this page keeping its age in your mind.Collection types in swift are the arrays, the dictionaries and the sets. Iterating through them is really easy using the for-in loop. The purpose of this article is to gather all the related information in one point, neat? Lets start with
Continue reading Iterating through Collection Types in Swift
Closures 101 in swift
This content has 9 years. Please, read this page keeping its age in your mind.Closures, what a great tool! Once you get it, you love it. Closures are the famous blocks in Objective-C. Maybe were a bit difficult to understand at first sight. I’ve written three parts in this blog to explain them. However now
Functions 101 in swift
This content has 9 years. Please, read this page keeping its age in your mind.Functions are the building blocks of any application. Let’s start with some obvious characteristics about them. The functions declared using the keyword func. Then follows the function name and the parenthesis containing the parameters, after that there is an arrow “->”
Check if a UITextField is empty
This content has 9 years. Please, read this page keeping its age in your mind.One of the most common tasks is to check whether a UITextField is empty in order to proceed with a save action. The way to manage the Return Key in the keyboard is very easy. In the Attributes Inspector of the