开发者

Best practice in viewDidUnload?

开发者 https://www.devze.com 2023-04-02 08:24 出处:网络
What is the best practice in viewDidUnload? To set to nil IBOutlets only or each instance variable too (release before)?

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

Than开发者_开发技巧ks 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消