Looks like you're trying to add a UIViewController to userdefaults? I doubt it will work.
I assume that you will need to put some line or identifier number where it indicates which view manager is currently displayed, and when the application starts to basically check this value and configure your view controllers accordingly.
- . , , . - , , NULL. , . NULL, , , userdefaults.