Autonomous UIViewController

36 views Asked by At

I want to create a UIViewController, that contains logic to present itself according to that logic.

Why?

I want this to be an isolated class that can be easily implemented into any project with minimum effort. Like just drag and drop into a project, add a simple #import and/or

myclassdelegate

and an instantiation in the AppDelegate.

Then, when the app is running, and the conditions of the logic are met, for instance, a specific date/time is reached, or the device exceeds a given speed, or the device is within a specified GPS range, the ViewController pops up.

Is this doable?

What would be the best approach for this?

0

There are 0 answers