I’ve mentioned a number of dependency injection frameworks in the past including: the popular Typhoon framework, the Google Guice inspired Objection framework, and the Bloodmagic framework that uses simple custom property attributes.
Here’s a nice guide from Graham Lee on dependency injection with Objective-C.
In the guide Graham goes through in-depth as to what dependency injection is, and its advantages then goes through an example in code showing how to use dependency injection for cleaner and more manageable code.
You can find the guide over on the Big Nerd Ranch blog.
A nice guide on dependency injection in Objective-C.
- Easy To Implement Google Guice Inspired Objective-C Dependency Injection Framework
- A Google Guice Like iOS Objective-C Dependency Injection Framework
- New Open Source iOS Objective-C Dependency Injection Framework
- An Objective-C Dependency Injection Framework Using A Unique Approach
- Objective-C Dependency Injection Framework Using A Spring-Style Approach
Original article: Tutorial: Why And How To Implement Dependency Injection In Objective-C
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.