In one of the answers for a question on iOS Framework
vs. Static Library
, yoAlex5 quoted,
A Library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client.
A Framework embodies some abstract design, with more behavior built in. In order to use it you need to insert your behavior into various places in the framework either by subclassing or by plugging in your own classes. The framework's code then calls your code at these points. The main control of the program is inverted, moved away from you to the framework. (Inversion of Control)
Could anyone please give any example for iOS with minimal code snippet where I can understand how Static Library
cannot support inversion of control when a Framework
can?