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.
6 lines
325 B
6 lines
325 B
5 years ago
|
An Objective-C block uses `weakSelf` more than once. This could lead to
|
||
|
unexpected behaviour. Even if `weakSelf` is not nil in the first use, it could
|
||
|
be nil in the following uses since the object that `weakSelf` points to could be
|
||
|
freed anytime. One should assign it to a strong pointer first, and then use it
|
||
|
in the block.
|