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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -