Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在我的项目中使用A并在模拟器中模拟内存警告时,应用程序经常在[super didReceiveMemoryWarning]中崩溃。如果我想从 ARC 项目中的非 ARC 文件继承类,有什么需要注意的吗?任何建议将不胜感激。
我没有遵循 didReceiveMemoryWarning 和 ARC/非 ARC 问题之间的逻辑联系。
ARC/非 ARC 问题与之前的SO 讨论重复。
除了其他讨论中提到的项目(用 适当地标记非 ARC 文件–fno-objc-arc),您可能需要考虑转换到 ARC中概述的规则,特别是方法的命名约定(至少如果它们是方法由 ARC 子类调用)。
–fno-objc-arc