39

[iOS]一次高效的依赖注入

 5 years ago
source link: http://www.cocoachina.com/ios/20181029/25312.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
依赖注入有另外一个名字,叫做“控制反转”,像上面的组件化的例子,主项目依赖组件,现在有一个需求,组件需要依赖主项目,这种情况就叫做“控制反转”。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK