0

What is the best practice in viewDidUnload? To set to nil IBOutlets only or each instance variable too (release before)?

Thanks in advance.

Samui
  • 1,384
  • 3
  • 14
  • 28

1 Answers1

1

Release instance variables before setting to nil. You don't really need to set them to nil, though.

Basically, you do the tear down of any code in viewDidLoad.

Benjamin Mayo
  • 6,649
  • 2
  • 26
  • 25