I have a situation where I build a view with a table and another view for table header (containing images and labels and buttons). Now I connected the table, image, labels, buttons to variables in my Controller class. Should I release the memory in -dealloc method for all those variables that I connected using Interface Builder? I believe memory is automatically allocated for these variables?
I have a situation where I build a view with a table and another
Share
The answer is best provided by Apple’s Memory Management of Nib Objects document. If your code ‘owns’ the NIB (i.e. you called
+[NSBundle loadNibNamed: foo owner: bar]) then your code needs to destroy the NIB resources.