I understand the reason i should use retain, but why should I ever use assign? (besides to avoid retain cycles)
[EDIT] So if i understand Chuck's answer on https://stackoverflow.com/questions... correctly, when ever I use assign, the variable would lose scope once it gets out of scope of the method just like it does in regular C-type language behavior?
You should assign things that aren't objects. Any C type (such as int, float, char, double, struct, and enum) should be assigned.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With