Q&A
Ask and answer questions to make information more available to wider audiences.
Chloe Jameson @jamesonchloe   21, Jun 2023 12:00 AM
the difference between strong, weak, read-only, and copy
What is the difference between strong, weak, read-only, and copy?
answers 4
 
Answer 1
Jackson Buckwalter @jacksonbuckwalter1   27, Jun 2023 03:56 PM
Copy: It means that when an object is created, we copy its value. Also prevents its value from changing.
 
Answer 2
Jackson Buckwalter @jacksonbuckwalter1   27, Jun 2023 03:55 PM
Read-only: Initially, The property will be set, and it can’t be changed.
 
Answer 3
Jackson Buckwalter @jacksonbuckwalter1   27, Jun 2023 03:55 PM
Weak: It can be said as a non-strong reference, which means it refers to the fact that we are referring to an object but not adding to its reference count. It’s often used to establish a parent-child relationship. The parent has a strong connection with the infant, but the child has only a small connection with the parent.

 
Answer 4
Jackson Buckwalter @jacksonbuckwalter1   27, Jun 2023 03:55 PM

Strong: Through the life of the object, the reference count will be increased, and the reference will be maintained