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