Structures 101 in swift

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 are like classes you are right but…only similar. Major difference is that structures are

Continue reading Structures 101 in swift

Declaration of variables in different locations in Objective-C

Having worked with Objective-C you will have noticed that there are many different locations to declare instance variables and local variables. In this article, we are going to explore the different possibilities and the meaning of each case. Lets start with the header file of the class. This file looks like this: In the first

Continue reading Declaration of variables in different locations in Objective-C