You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
487 B
9 lines
487 B
5 years ago
|
This will happen in one of two cases generally:
|
||
|
|
||
|
1. One uses `weakSelf` but forgot to declare it weak first.
|
||
|
2. One is using `strongSelf`, declared in a block, in another (inside) block.
|
||
|
This changes the delicate balance of the `weakSelf`/`strongSelf` use in the
|
||
|
first block. The retain cycle is avoided there because `strongSelf` is a
|
||
|
local variable to the block. If `strongSelf` is used in the inside block,
|
||
|
then it's not a local variable anymore, but a captured variable.
|