2

I was wondering if there were any dependency injection frameworks for use with development on the iPhone. Being a Java developer by day, I enjoy, and see the benefits of, frameworks like Spring.

You can go part of the way by manually making certain components singletons and tying up the references manually.

martin clayton
  • 76,436
  • 32
  • 213
  • 198
lyonanderson
  • 2,035
  • 14
  • 14

3 Answers3

0

See this very similar, almost-dupe SO post.

In summary, you can achieve similar to DI using Categories. Here's a non-Apple reference.

Community
  • 1
  • 1
martin clayton
  • 76,436
  • 32
  • 213
  • 198
0

There is an dependecy injection library for iphone which support autowiring and more nice features http://github.com/mivasi/Objective-IOC

mivasi
  • 31
  • 1
0

Very very simple IOC container here - Inverter

Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228