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
Post a Comment