gpt4 book ai didi

iphone - UIViewController loadView 方法

转载 作者:行者123 更新时间:2023-12-03 19:26:40 25 4
gpt4 key购买 nike

重写 UIViewController 中的 loadView 方法时,应该在方法的开头调用 [super loadView] 还是在方法的末尾调用?为什么?

最佳答案

根据UIViewController class reference ,您根本不应该调用 [super loadView]:

Your custom implementation of this method should not call super.

关于iphone - UIViewController loadView 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1617193/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com