gpt4 book ai didi

ios - UITableViewCell 没有可见的@interface 声明选择器 didReceiveMemoryWarning

转载 作者:行者123 更新时间:2023-11-28 18:50:35 25 4
gpt4 key购买 nike

谁能告诉我为什么会出现这个错误

No visible @interface for UITableViewCell declares the selector didReceiveMemoryWarning

当使用下面的代码时:

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

最佳答案

因为 didReceiveMemoryWarning() 是一个可从 UIViewController 类继承的方法,它在 UITableViewCell 类(继承自 >UIView).

此外,didReceiveMemoryWarning()在系统检测到内存不足时被调用:

open func didReceiveMemoryWarning() 
// Called when the parent application receives a memory warning.
// On iOS 6.0 it will no longer clear the view by default.

关于ios - UITableViewCell 没有可见的@interface 声明选择器 didReceiveMemoryWarning,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41955760/

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