ios - IBOutlets Strong or Weak - Does it Actually Make a Difference to Memory Management? (ARC) -


I've been reading here and other sites lately whether IBOutlets should be strong or weak.

That's fine.

But I still do not have any clear understanding, so to make them strong or weak actually will make a difference in the context of memory management of the app, especially since it appears on iOS 6, Now no memory is asked to get the warning, so in this sense the option of being weak or strong for IBotlets will not make any difference.

Am I right to think that now on the navigation stack to see the controllers (i.e. they are loaded later), will any IBolet be declared weak?

IBOutlets can declare weak because they will be created for the parsing of XIB During and during the UIView stack is added ... so that you do not need a strong reference to the object.

When you declare an IBOutlet weak then you ensure that the main UIView of the UIViewcontroller will disappear without any memory leak, when each subsection disappears.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -