对于 iPhone 的小型 Cocoa Touch 应用程序,我想使用界面生成器作为轻量级依赖注入。
为了实现这一点,我要么需要创建一个不属于视图控制器的“全局”对象,要么创建一个属于根视图控制器并作为出口注入的对象。
我无法实现上述任何方法吗?它们可能吗?如果可能,如何实现?
For a small Cocoa Touch application for the iPhone I would like to use the interface builder as lightweight dependency injection.
To accomplish this, I would either need to create a "global" object that does not belong to a view controller or alternatively an object that belongs to the root view controller and is injected as an outlet.
I can not able to realize any of the above mentioned methods? Are they possible and if yes, how?
发布评论