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

Thanks in advance.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top