本文介绍了iPhone:[超级viewDidUnload]调用顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在重新定位属性之前或之后调用[super viewDidUnload]之间是否有任何区别。

I would like to know if there is any difference between calling [super viewDidUnload] before realeasing properties or after it.

谢谢!

  self.webView = nil;
  self.fullText = nil;
  [super viewDidUnload];

  [super viewDidUnload];
  self.webView = nil;
  self.fullText = nil;


推荐答案

这取决于超类在<$ c中的作用$ C> viewDidUnload 。如果它只是一个标准的的UIViewController ,要么会做,因为 - [UIViewController中viewDidUnload] 无助

This depends on what the superclass does in viewDidUnload. If it's just a standard UIViewController, either will do because -[UIViewController viewDidUnload] does nothing.

这篇关于iPhone:[超级viewDidUnload]调用顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 08:41