开发者

Should viewDidUnload call super viewDidUnload or dealloc?

The template se开发者_Python百科ems to create [super viewDidUnload] but code samples show:

[super dealloc]

Is there a difference?


You should only invoke the superclass' implementation of -viewDidUnload

Never invoke [super dealloc] directly, except in your own -dealloc method

- (void) viewDidUnload {
    ...
    [super viewDidUnload];
}

And

- (void) dealloc {
    //clean up here
    [super dealloc];
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜