You can declares iVar-s in header files but it’s better in the implementation, so they will be really invisible for others. You should do this way: [crayon-590538f0d4b63081037770/] But what if you forget the parenthesis and you put the variable simply beside the @synthesize? Like this: [crayon-590538f0d4b70825424919/] The compiler will treat […]

ObjC ivar/global var declaration – a clarification

About property and iVar usage in init/dealloc methods. Technically one use properties if he wants to publish a member. Make it accessible and/or modifiable without exposing the structure of the class. Properties also allows you to run a code (accessors) when the property is set (setter method) or get (getter […]

ObjC Properties vs iVars