State restoration Debugging
State restoration Debugging
- Subject: State restoration Debugging
- From: Alex Kac <email@hidden>
- Date: Mon, 10 Oct 2016 10:53:15 -0600
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 (email@hidden)
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:
This email sent to email@hidden