objective c - Retain cycle deallocation solution -


given following code:

    nsmutablearray *a = [nsmutablearray array];     nsmutablearray *b = [nsmutablearray array];      [a addobject:b];     [b addobject:a]; 

what options make array objects deallocate when set , b nil?

ive tried few things (like weak references) doesn't seem work.. (probably because don't understand enough - new objective c ).

would love assistance.

thank you

you can make entire array not retain elements with: cfarraycreate()

this can problematic in arc if no longer use elements iterate through array later.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -