[ios] Accessing AppDelegate from framework?

I'm creating my first framework in Objective-C that wraps the facebook SDK in a more intuitive way. There are several points in my framework where I'd like to reference the AppDelegate, but there is no appdelegate when you create a static Cocoa Touch library. How can I reference it? I want to reference the app delegate of the xcode project that my framework is linked to.

This question is related to ios objective-c ios-frameworks

The answer is


If you're creating a framework the whole idea is to make it portable. Tying a framework to the app delegate defeats the purpose of building a framework. What is it you need the app delegate for?