Skip to content

Commit c1e5ac5

Browse files
committed
Content: Memory Management(Edited A)
1 parent cd0f534 commit c1e5ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ KVO stands for *Key-Value Observing*. It allows a controller or class to *observ
200200

201201
#### Why do you generally create a weak reference when using self in a block?
202202

203-
Using a weak reference avoids retain cycles and memory leaks.
203+
Sometimes it is necessary it capture self in a block such as when defining a callback block. However, since blocks maintain strong references to any captured objects including self, this may lead to a strong reference cycle and memory leak.
204204

205205
#### What is memory management handled on iOS?
206206

0 commit comments

Comments
 (0)