Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Swift
/
Automatic reference counting
A cached child may outlive its parent, and callers can handle a missing parent. Which dec…
from Automatic reference counting
Swift 6.3.3
intermediate
1 min
A cached child may outlive its parent, and callers can handle a missing parent. Which declaration best models the back-reference?
weak var parent: Parent?
unowned let parent: Parent
var parent: Parent
Check
Ask AI about this kata
Report an error
previous kata
Which statement about the scope of ARC is accurate?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload