0
votes

i have some memory issues in program and i have the following questions.

question 1) i have a member variable of type nsstring and i dont have any property for it , i used it without self.xxx in various methods to access it. i have not allocated any memory for this variable and i need to know do i still have to release it in dealloc and assign nil in viewdidunload.

question 2)

i have a member variable with (nonatomic , retain) property. i have not used this vairable outside the class anywhere whatsoever. in order to use it within various methods of the class is it necessary for me to allocate memory for it or should it self.membervariable.

question 3) Do all iboutlet's with property(nonatomic,retain) require self.outlet=nil in viewdidunload and [outlet release]; in dealloc;

question 4) what about iboutlet's without property , do i have to do outlet=nil in viewdidunload and [outlet release]; in dealloc.

1

1 Answers