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-5e51af3e99f95939771162/] But what if you forget the parenthesis and you put the variable simply beside the @synthesize? Like this: [crayon-5e51af3e99fa1199754480/] 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