I’m curious if anyone has some helpful hints when state restoration doesn’t 
work. I have the following situation:

UIWindow subclass
-UITabViewController subclass

Each tab has:
—UISplitViewController subclass
—UINavigationController subclass
        -UIVC Master subclass
        -UIVC Detail subclass

Its all in code - no storyboard. I’m creating the window, tab, split, in the 
willFinishLaunching so that its all ready for state restoration. I have the 
restoration identifiers setup. I have the detail view controller conforming to 
UIViewControllerRestoration and viewControllerWithRestorationIdentifierPath 
does get called. I’m creating the detail VC, and I’m seeing it all get decoded 
properly. 

I’ve read every article I can find on state restoration, the docs, etc… and I 
just can’t find anything that provides common reasons for it not working. Here 
is what’s driving me crazy: I got it all working once. Then I went to apply it 
to another tab and its View controllers, and I’ve never gotten it to work again.

I’ve always hated working with state restoration, and I’m about to go 
old-school.


Alex Kac


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to