【发布时间】:2010-10-30 22:40:46
【问题描述】:
在我正在开发的 iphone 应用程序中,我使用自定义类来管理与主机的网络通信。名为protocolClass 的类是appDelegate 中的ivar 和applicationDidFinishLaunching: 方法中的alloc + init。
现在,每当 protocolClass 从主机接收数据时,它都会在其委托(我将其设置为 appDelegate)中调用 protocolClassDidReceiveData: 方法。然后我需要更新 UINavigatorController 中一个 customViewController 中的数据。
我应该只在 appDelegate 中添加对我需要更新的 customViewController 的引用吗?还是有其他更有效的方法?
如果我要保留对 customViewcontroller 的引用,那么内存使用的后果是什么?
提前致谢。
【问题讨论】:
标签: iphone uinavigationcontroller