differences between weak and assign property?

后端 未结 2 1084
不知归路
不知归路 2021-02-03 16:30

I have few questions.

1)where assign property will take memory as we dont need to release for reducing reference count?

2)what is the difference between auto zer

2条回答
  •  忘掉有多难
    2021-02-03 16:47

    assign is like weak but there's no zeroing of the pointer when it leaves the heap. So, it's not as safe as weak.

提交回复
热议问题