1
我想使用从另一个模块获得的对象。我无法弄清楚如何使用注入预先获得的对象时发生崩溃
#Instructing台风从doc
注入预先获得的实例
我试图这样做,所以:
self.someAssembly = [[SomeAssembly new] activated];
[self.someAssembly inject:someObject];
SomeModule *module = [self.someAssembly getModule];
如果我尝试在某些定义中按类型注入,我会收到消息:
层没有定义的组件,其satisify类型:“SomeObject”
因此,如何能我用这个在我的定义非常someObject
从SomeAssembly
?
谢谢!