iOS


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