Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State restoration #69

Closed
wants to merge 5 commits into from

Conversation

djibouti33
Copy link
Contributor

Enabling an instance of MMDrawerController to restore it's left, right and center view controllers as well as state pertaining to any openSide when app was sent to background.

djibouti33 added 2 commits August 1, 2013 14:39
…… …ore state

MMDrawerController can restore:
 - leftDrawerViewController
 - rightDrawerViewController
 - centerViewController
 - openSide
@kcharwood
Copy link
Contributor

References #65

@kcharwood
Copy link
Contributor

@djibouti33 Would you want to take a stab updating the example to use this?

@djibouti33
Copy link
Contributor Author

Yeah, absolutely. Unfortunately I'm taking off for vacation in about 45 minutes but I can definitely get to that when I return. Are you ok with keeping this branch around until after 8/12?

@kcharwood
Copy link
Contributor

Sure. I may get it tackled before you get back. Enjoy the vacation.

- encoding/decoding seems to be occurring in the proper steps
- centerViewController is not appearing
- Unbalanced calls to begin/end appearance transitions for <MMExampleRightSideDrawerViewController:> begin logged in console
@kcharwood
Copy link
Contributor

I took a stab at it with b850b8d. Not sure if I'm doing it right, but it appears to be "working".

@kcharwood
Copy link
Contributor

I've decided to not automatically set the restorationIdentifier, since that is part of the opt in process, and seems to follow how other container view controllers behave such as UINavigationController

Kevin Favro added 2 commits August 15, 2013 10:56
    - still not working:
     - scroll position of center table is not being restored. could have something to do with the fact that this is a UITableViewController. simpy setting a restorationIdentifier on the tableView had no effect, even though it should
     - drawerWidths are being restored (the checkmark restores to the proper dimension) but then the drawer pops out to it's initial width.
@kcharwood
Copy link
Contributor

I've merged it my branch from 22adcbd that pulled in some of your original changes. It appears to be working well for me. Take a look, and feel free to make any additional changes. If you like what you see, we'll call it done :)

Getting close to being ready for an 0.4.0 release (maybe later today?)

Thanks again for kicking this off 🍻

@kcharwood kcharwood closed this Aug 16, 2013
@djibouti33
Copy link
Contributor Author

Awesome! Are you ok with the two limitations I noted in my latest commit? About the drawer widths and the center table not maintaining scroll state?

I'm away from a computer today so won't be able to look over everything until Sunday night. If your eager to cut 0.4.0 I'd say go ahead, otherwise we can just include it in the next.


From: Kevin Harwood [[email protected]]
Sent: Friday, August 16, 2013 9:16 AM
To: mutualmobile/MMDrawerController
Cc: Kevin Favro
Subject: Re: [MMDrawerController] State restoration (#69)

I've merged it my branch from 22adcbdhttps://github.com/mutualmobile/MMDrawerController/commit/22adcbd that pulled in some of your original changes. It appears to be working well for me. Take a look, and feel free to make any additional changes. If you like what you see, we'll call it done :)

Getting close to being ready for an 0.4.0 release (maybe later today?)

Thanks again for kicking this off [https://github.global.ssl.fastly.net/images/icons/emoji/beers.png]


Reply to this email directly or view it on GitHubhttps://github.com//pull/69#issuecomment-22776786.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants