rules for reference counting are still fulfilled(ARC)

rules for reference counting are still fulfilled(ARC).

Please note that the following rules for reference counting are still fulfilled(ARC).

  •  You have ownership of any objects you create.

  •  You can take ownership of an object using retain.

  •  When you no longer need it, you must relinquish ownership of anobject of which you have ownership.

  •  You must not relinquish ownership of an object of which you don’thave ownership.

  • The first two rules are achieved by assigning to a __strong variable. The third rule isachieved automatically by leaving variable scope, by assigning to variables, or whenobjects having a member variable are discarded. The last rule is very clear becausereleases are never typed. So all the rules are still fulfilled.