ios - iVars references strong, weak or what? -


in obj-c, properties can configured weak/strong. instance variables. following -

@interface myclass { nsobject *a; } 

does myclass's object keep weak reference a or strong, or else? think ivar not released until object released. why don't specify weak/strong ivar properties?

the default reference ivar __strong, though can explicitly set __weak or __strong



Comments

Popular posts from this blog

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -