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

In objective-c we declare only as property without instance variable?

I’m reading about core data and I noticed (again) in application delegate file: where the we have only the decleration of properties without the instance variables. By googling around I found that: In Objective-C 2.0 on either of the modern runtimes (ie, Intel 64bit and ARM) properties can be added to classes ‘dynamically’ (that is,

Continue reading In objective-c we declare only as property without instance variable?