I am using @property(nonatomic, retain)
for my IBOutlets for an iPhone application. However, I'm not sure how to make sure I'm managing memory with them properly. The IBOutlets are all set up in Interface Builder, so I'm never calling alloc
manually. This means that I'm not sure when and if to deallocate them or when to set them to point to nil
.
What are the best practices ensuring that no memory is leaked once the view unloads?