We have developed a module for an iPhone app that has a RootViewController:UIViewController that will sit as ONE tab bar item in a bigger iPhone app. We need to provide this module somehow to our client but we would like to satisfy the following requirements:
1) The source code is not revealed
2) It is easy for the vendor to implement our UIViewController in his app.
If the UIViewController is written in code and doesn’t rely on nibs, then I’d suggest using a static library. It’s quite easy to create a static library as a fat binary (using the lipo tool) that clients can add to their projects. Only thing needed is the library file and the public header files.
If you do rely on nibs and you have images, localized texts, etc, then you’d prefer to distribute the code in a framework. I never tried it, but this guide should help you for those purposes: http://db-in.com/blog/2011/07/universal-framework-iphone-ios-2-0/