Properties vs instance variable?


#1

why doesn’t this book prefer properties over instance variable? it seems point to use/instance variable in objective-c 2.0.


#2

That’s because the book is teaching the basics: instance variables are hidden behind the properties, and there is a cost for accessing them through properties.


#3

Properties and instance variables are two totally different things. When you get past chapter 2, you’ll see we use properties when we need to use properties.