I've been trying without any luck to implement state restoration and preservation.

I'm not using storyboards. I have to be doing something wrong.

I set up the restoration identifier for every Nib file.

I know the state is being stored, but never restored properly. The last state shows for half a second and then it goes back to the main view. I've tried many things with no luck. Please help!