Should I declare ivars for properties?


#1

Hi Folks,

I started with iOS programming recently and I’ve being learning it with the help of your book and some blogs with sample code. From all code that I have found, some people declare the ivars for they’re synthesized properties (this seems to be the case of the code in the book) while others just declare and synthesize the property without declaring the ivar.

Is there a reason for that apart from code convention?

Thanks in advance,

Eric