Question

I am creating a framework, which i will add to some of the projects for accomplishing a particular functionality. And this framework will need to open a presentModalViewController as soon as the application launches. To achieve this, i need to know when view of the first view controller of the main app gets loaded, After that, i will add the following functionality inside framework.

[firstLoadedViewController presentModalViewController:viewControllerInsideFramework];

How to notify the framework that a rootviewcontroller has been assigned to Window and it gets loaded it's view fully? And how to find what is the firstLoadedViewController by writing code inside framework?

Please advice, Thank you.

Was it helpful?

Solution

If you are trying to do all the work from your framework itself then you can try to modify only the main file by replacing the main bundle reference with your bundle reference.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top